You are not logged in.
Pages: 1
Hi!
I'm using networkmanager to connect to my router and I would like it to register my hostname (myhost) to the ip address that has been set up by the dhcp.
I recently switched from ubuntu to arch linux and I could configure everything as I like it. I would really like to have myhost resolve to my local ip address 192.168.1.xxx NOT to localhost 127.0.0.1.
I noticed this behaviour as I tried to use one of my scripts (I even made a PKGBUILD file to install it the arch way). I normally used the hostname to get my current (local) ip address... (gethostbyname).
It makes no sense to set "myhost" to 127.0.0.1 because I can always use this address to refere to localhost.
I think it worked when I used net-auto-wireless & netcfg...
Can anyone help me with this? I'm really desperate
rc.conf
LOCALE="de_AT.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Vienna"
KEYMAP="de-latin1"
CONSOLEFONT="default8x16"
CONSOLEMAP=
USECOLOR="yes"
MODULES=(ath5k acpi_cpufreq pciehp intel_agp drm i915 uvcvideo fuse)
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="myhost"
interface=
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
DAEMONS=(syslog-ng crond dbus networkmanager)
dhclient.conf
send host-name "<hostname>"
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Inform the DHCP server of our hostname for DDNS.
hostname myhost
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
noipv4ll
NetworkManager/NetworkManager.conf
[main]
plugins=keyfile
[keyfile]
hostname=myhost
NetworkManager/system-connections/xyz...
[connection]
id=Tele2_Easybox (automatisch)
uuid=0771bb1f-3554-4545-8afb-efde3b91fd2f
type=802-11-wireless
[802-11-wireless]
ssid=Tele2_Easybox
mode=infrastructure
mac-address=<mac-address...>
security=802-11-wireless-security
[802-11-wireless-security]
key-mgmt=wpa-psk
auth-alg=open
psk=<key...>
[ipv4]
method=auto
[ipv6]
method=auto
Thanks in advance for any help...
Offline
Pages: 1