resolv.conf and host cmd (search domain issue)

Tony Arnold tony.arnold at
Fri Sep 15 11:19:09 UTC 2006


On Fri, 2006-09-15 at 09:52 +0100, slakkie wrote:

>   $ host -v
>   Trying ""
>   Host not found: 3(NXDOMAIN)
>   Received 99 bytes from 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.

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, H:

More information about the ubuntu-users mailing list