Bug#2527: `host' uses `search' in resolv.conf to determine local domain
Package: dnsutils
Version: 951231-1
`host' is tacking the first item in the search path in
/etc/resolv.conf onto a `single name without a trailing dot', rather
than the local domain name.
>>From the `host' manpage:
For single names without a trailing dot, the local domain
is automatically tacked on the end. [...]
The actual suffix to tack on the end is usually the local
domain as specified in the /etc/resolv.conf file, [...]
>>From my /etc/resolv.conf:
domain acad.cai.cam.ac.uk
search cam.ac.uk chu.cam.ac.uk cus.cam.ac.uk ac.uk
nameserver 131.111.131.23
nameserver 131.111.131.114
nameserver 131.111.8.42
However:
tacitus:~$ host tacitus
tacitus.cam.ac.uk does not exist (Authoritative answer)
tacitus:~$ host -l cam.ac.uk
tacitus does not exist (Authoritative answer)
Error in looking up own name
tacitus:~$
Owen
--
Caius College, Cambridge CB2 1TA, UK <osd1000@cam.ac.uk>
http://myrddin.chu.cam.ac.uk/users/osd1000/ <osd1000@chiark.chu.cam.ac.uk>
`As living soul as a flame.'
Reply to: