[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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


>>From the resolver(5) man page:

       The domain and search keywords are mutually exclusive.  If
       more than one instance of these keywords is  present,  the
       last instance wins.

Also from the host(1) man page:

       Note that the usual lookup convention for any name that
       does not end with a trailing dot is to try first with the
       local domain appended, and possibly other search domains.
       This convention is not used by this program.

Thus only one domain will be tried, the first in your search list.

I'm going to close this report.

--
Robert Leslie
rob@mars.org



Reply to: