View previous topic :: View next topic |
Author |
Message |
betawind n00b
Joined: 26 Mar 2008 Posts: 1
|
Posted: Tue Apr 01, 2008 8:39 pm Post subject: err, eth0: Failed to lookup hostname via DNS |
|
|
Whenever I start my eth0 interface I get the below output:
Starting eth0
Bringing up eth0
dhcp
Running dhcpcd ... err, eth0: Failed to lookup hostname via DNS: Name or service not known [ok]
eth0 received address 172.16.134.64/24
I still have network connectivity but remote machines cannot resolve my dns name. Below is my /etc/conf.d/net and /etc/hosts files
/etc/conf.d/net:
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 BradDGentoo
::1 localhost
Any thoughts? Any help would be greatly appreciated. |
|
Back to top |
|
|
zaai Apprentice
Joined: 24 Jul 2004 Posts: 175
|
Posted: Fri Apr 04, 2008 12:16 am Post subject: |
|
|
Quote: | config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis" |
Maybe this isn't intentional but the option "nodns" tells dhcpcd to NOT update /etc/resolv.conf with the DNS server.
As a result there is no DNS and hostname resolution doesn't work, hence the error.
This can also be fine as long as /etc/resolv.conf contains an existing DNS server address. _________________ * most bugs can be reduced to either dependency or state *
Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3 |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|