Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bind-tools host/nslookup: parse of /etc/resolv.conf failed
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
jel
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 259
Location: Gothenburg

PostPosted: Sun Feb 11, 2007 4:03 pm    Post subject: bind-tools host/nslookup: parse of /etc/resolv.conf failed Reply with quote

Code:
localhost ~ # host forums.gentoo.org
host: parse of /etc/resolv.conf failed
localhost ~ # nslookup forums.gentoo.org
nslookup: parse of /etc/resolv.conf failed


Not sure when it started. Tried upgrading to ~x86 bind-tools but that doesn't help.

As far as I know, resolv.conf is generated by dhcpcd.

This is my current resolv.conf:

Code:

# Generated by dhcpcd for interface eth1
search
nameserver 83.255.249.10
nameserver 83.255.245.10


I'm using net-misc/dhcpcd-3.0.11 and net-dns/bind-tools-9.3.4
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Feb 11, 2007 4:20 pm    Post subject: Reply with quote

It looks like your missing the domain name on the search line.

"search" specifies the list of domain names to use when trying to resolve simple host names. Your dhcp server should be providing this.
Back to top
View user's profile Send private message
jel
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 259
Location: Gothenburg

PostPosted: Sun Feb 11, 2007 5:00 pm    Post subject: Reply with quote

Mark Clegg wrote:
It looks like your missing the domain name on the search line.

"search" specifies the list of domain names to use when trying to resolve simple host names. Your dhcp server should be providing this.


You're correct. Commenting out the search line makes the file parseable. Now the only problem is that dhcpcd will overwrite my fix... Stupid dhcp server.
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Thu Aug 28, 2008 10:59 pm    Post subject: Reply with quote

thx i have the same problem :oops:
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Fri Aug 29, 2008 12:37 am    Post subject: Reply with quote

Set the /etc/resolv.conf how you want it, then in /etc/conf.d/net add the line
Code:

dhcp_eth1=( "nodns" )

Then it will leave that file alone.
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