View previous topic :: View next topic |
Author |
Message |
jel Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/59936282749ac74bfd68a2.jpg)
Joined: 10 Aug 2005 Posts: 259 Location: Gothenburg
|
Posted: Sun Feb 11, 2007 4:03 pm Post subject: bind-tools host/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 |
|
![](templates/gentoo/images/spacer.gif) |
Mark Clegg Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13263777914a046351cd7a9.jpg)
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Sun Feb 11, 2007 4:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jel Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/59936282749ac74bfd68a2.jpg)
Joined: 10 Aug 2005 Posts: 259 Location: Gothenburg
|
Posted: Sun Feb 11, 2007 5:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DarkMind Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/205379082240553813f0b32.jpg)
Joined: 18 Dec 2003 Posts: 525 Location: Santiago, Chile
|
Posted: Thu Aug 28, 2008 10:59 pm Post subject: |
|
|
thx i have the same problem ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gentoo_ram Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Fri Aug 29, 2008 12:37 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|