Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd err
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
mrpringle
Apprentice
Apprentice


Joined: 27 May 2007
Posts: 284

PostPosted: Mon Mar 31, 2008 11:44 am    Post subject: dhcpcd err Reply with quote

Has anyone noticed the same problem. Since dhcpcd 3.2.3 every time dhcpcd starts on boot I get this error:
err, eth0: Failed to lookup hostname via DNS: Name or service not known

I still get an IP address assigned by dhcpcd and everything seems to work normally.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 31, 2008 11:55 am    Post subject: Re: dhcpcd err Reply with quote

mrpringle wrote:
Has anyone noticed the same problem. Since dhcpcd 3.2.3 every time dhcpcd starts on boot I get this error:
err, eth0: Failed to lookup hostname via DNS: Name or service not known

I still get an IP address assigned by dhcpcd and everything seems to work normally.


I've not seen this behaviour before.
What is the output of `hostname` and does DNS resolving work?
_________________
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
mrpringle
Apprentice
Apprentice


Joined: 27 May 2007
Posts: 284

PostPosted: Mon Mar 31, 2008 12:10 pm    Post subject: Re: dhcpcd err Reply with quote

Quote:
I've not seen this behaviour before.
What is the output of `hostname` and does DNS resolving work?


the output of hostname is localhost. I suppose DNS resolving works or else I wouldn't be browsing this page.
Back to top
View user's profile Send private message
Erulabs
n00b
n00b


Joined: 08 Mar 2006
Posts: 48
Location: erulabs.com

PostPosted: Mon Mar 31, 2008 10:17 pm    Post subject: Reply with quote

In /etc/hosts, do you give yourself a hostname?

Try "127.0.0.1 myboxname".

Its probably a good idea to give yourself a hostname as well.

"hostname myboxname" to set hostname.
_________________
No more things should be presumed to exist than are absolutely necessary. Or really cool.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Apr 01, 2008 12:57 am    Post subject: Reply with quote

Also check whether you have dhcpd-options in /etc/conf.d/net .. . I had "-l -0" which was not valid anymore and prevented to get an IP-addres at all :-/

HTH
swimmer
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Apr 02, 2008 8:33 am    Post subject: Re: dhcpcd err Reply with quote

mrpringle wrote:
Has anyone noticed the same problem. Since dhcpcd 3.2.3 every time dhcpcd starts on boot I get this error:
err, eth0: Failed to lookup hostname via DNS: Name or service not known

I still get an IP address assigned by dhcpcd and everything seems to work normally.


Does this patch fix things?
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