resolv.conf and host cmd (search domain issue)
slakkie
ulist at gs1.ubuntuforums.org
Fri Sep 15 08:52:49 UTC 2006
In my resolv.conf I have the following entries:
Code:
--------------------
domain euronet.nl
search euronet.nl wanadoo.nl hosting.euronet.nl it-dev-lan.euronet.nl sf6800.euronet.nl euro.net
nameserver 194.134.0.97
nameserver 194.134.5.5
--------------------
The resolv.conf is the same on another machine running FreeBSD.
Host on FreeBSD:
Code:
--------------------
$ host -v netapp1-asd2.nl
Trying null domain
rcode = 3 (Non-existent domain), ancount=0
Trying domain "euronet.nl"
rcode = 3 (Non-existent domain), ancount=0
Trying domain "wanadoo.nl"
rcode = 3 (Non-existent domain), ancount=0
Trying domain "hosting.euronet.nl"
rcode = 3 (Non-existent domain), ancount=0
Trying domain "it-dev-lan.euronet.nl"
rcode = 3 (Non-existent domain), ancount=0
Trying domain "sf6800.euronet.nl"
rcode = 3 (Non-existent domain), ancount=0
Trying domain "euro.net"
rcode = 0 (Success), ancount=1
The following answer is not authoritative:
The following answer is not verified as authentic by the server:
netapp1-asd2.nl.euro.net 86400 IN A 10.0.23.96
--------------------
On my Ubuntu 6.x box:
Code:
--------------------
$ host -v netapp1-asd2.nl
Trying "netapp1-asd2.nl"
Host netapp1-asd2.nl not found: 3(NXDOMAIN)
Received 99 bytes from 194.134.0.97#53 in 6 ms
--------------------
In /etc/nsswitch.conf:
Code:
--------------------
hosts: files dns mdns
--------------------
Why does the host command on Ubuntu not respect the search domains
defined in /etc/resolv.conf?
--
slakkie
More information about the ubuntu-users
mailing list