Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
err, eth0: Failed to lookup hostname via DNS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
betawind
n00b
n00b


Joined: 26 Mar 2008
Posts: 1

PostPosted: Tue Apr 01, 2008 8:39 pm    Post subject: err, eth0: Failed to lookup hostname via DNS Reply with quote

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
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Fri Apr 04, 2008 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Apr 04, 2008 7:50 am    Post subject: Re: err, eth0: Failed to lookup hostname via DNS Reply with quote

betawind wrote:
err, eth0: Failed to lookup hostname via DNS: Name or service not known
...
Any thoughts? Any help would be greatly appreciated.


dhcpcd will lookup the hostname in DNS if not configured. That message means it couldn't be found. You can safely ignore it - I'll silence it in the next version.
Until then, this patch should also fix it
http://roy.marples.name/dhcpcd/dhcpcd-hostname.patch
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum