Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Failed to lookup hostname via DNS: Name or service not known

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
quater
n00b
n00b
Posts: 6
Joined: Thu Sep 18, 2008 12:06 am

Failed to lookup hostname via DNS: Name or service not known

  • Quote

Post by quater » Thu Sep 18, 2008 4:09 pm

I have the following error on boot:
err, eth0: Failed to lookup hostname via DNS: Name or service not known

is there any way to get rid of this message? It doesn't seem to affect anything tho. Thanks!
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Thu Sep 18, 2008 5:06 pm

Your /etc/resolv.conf file needs to be configured.

That's why the installation handbook says to copy the /etc/resolv.conf file just before chrooting.

You need a nameserver <ip address> in there.
Top
quater
n00b
n00b
Posts: 6
Joined: Thu Sep 18, 2008 12:06 am

  • Quote

Post by quater » Thu Sep 18, 2008 5:57 pm

Thanks for reply, however this approach doesn't work. I put a dummy resolv.conf:

cat /etc/resolv.conf
nameserver 10.10.1.254

Still see same error on boot.

err, eth0: Failed to lookup hostname via DNS: Name or service not known
Top
codergeek42
Bodhisattva
Bodhisattva
Posts: 5142
Joined: Mon Apr 05, 2004 4:44 am
Location: Anaheim, CA (USA)
Contact:
Contact codergeek42
Website

  • Quote

Post by codergeek42 » Thu Sep 18, 2008 6:08 pm

Are you sure that's the right IP address of your nameserver? (In most cases, it's often the IP address of your router.)

You may want to try using OpenDNS's nameservers:

Code: Select all

##### /etc/resolv.conf #####

nameserver 208.67.222.222
nameserver 208.67.220.220
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Top
quater
n00b
n00b
Posts: 6
Joined: Thu Sep 18, 2008 12:06 am

  • Quote

Post by quater » Thu Sep 18, 2008 11:59 pm

The thing is that I may not have DNS or DNS could be not available. Is it possible to avoid this message?
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Fri Sep 19, 2008 2:22 am

If you are connected to the internet, then you are using DNS. If your resolv.conf is correctly configured, then you won't get error messages. :)
Top
quater
n00b
n00b
Posts: 6
Joined: Thu Sep 18, 2008 12:06 am

  • Quote

Post by quater » Fri Sep 19, 2008 6:01 pm

I am not connected to internet. I use DHCP but don't use DNS.
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Sat Sep 20, 2008 5:18 pm

Hmmm. then maybe (but not sure)
nameserver 127.0.0.1

But why do you use DHCP if you're not connected to the internet?
Top
username234
Guru
Guru
Posts: 332
Joined: Wed May 09, 2007 3:35 pm

  • Quote

Post by username234 » Sun Sep 21, 2008 6:44 am

I'm assuming you are using dhcpcd as your dhcp client. If so, upgrade dhcpcd to 4.0.1 (you may need to add dhcpcd to package.keywords before upgrading) and it will go away.
Creating usernames when you're
in a creative slump is a bad idea
because if you are when you do
then you end up with uninspiring
alphanumeric cocktails like the
one directly above.
Top
ZeuZ_NG
Guru
Guru
Posts: 453
Joined: Wed Sep 10, 2008 11:42 pm
Location: Near /dev/urandom | /dev/null

  • Quote

Post by ZeuZ_NG » Sun Sep 21, 2008 9:10 am

Ok, now wait, if you're using DHCP, and you're browsing the world wide network, then you're using DNS.
DHCP imports the configuration from what's received from the DHCP server, and clients then update the pertinent files.
What we need to know is what kind of network are you having, and, if it's just for an inner network, go check the DHCP server to see if there's any failure on the logs.
Perhaps more details would be helpful.
| Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy