resolv.conf and host cmd (search domain issue)
Tony Arnold
tony.arnold at manchester.ac.uk
Fri Sep 15 11:19:09 UTC 2006
Slakkie,
On Fri, 2006-09-15 at 09:52 +0100, slakkie wrote:
> $ 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
This may be relevant, from the host man page:
> The -N option sets the number of dots that have to be in name for it to
> be considered absolute. The default value is that defined using the
> ndots statement in /etc/resolv.conf, or 1 if no ndots statement is
> present. Names with fewer dots are interpreted as relative names and
> will be searched for in the domains listed in the search or domain
> directive in /etc/resolv.conf.
You have one dot in the name, so host assumes it is absolute. Try with the -N option or set ndots in resolv.conf.
Regards,
Tony.
--
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
More information about the ubuntu-users
mailing list