[plug] Couple of strange ones..

Kim Covil kimc at ned.dem.csiro.au
Mon Aug 30 11:50:21 WST 1999


> > Is there any way to tell named to query the local hosts file as well?
> > I can't seem to locate it in the docs.. tho I have been known to be
> > blind at times..
> 
> I would like to know this too. :)  For memory, OpenBSD (probably other
> BSDs) includes a directive in /etc/resolv.conf to allow you to tell the
> resolver to look in the /etc/hosts file before attempting to query a
> nameserver - I haven't been able to find any Linux equivalent... (sorry,
> I know this doesn't help. ;-)

/etc/nsswitch.conf:
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#       nisplus or nis+         Use NIS+ (NIS version 3)
#       nis or yp               Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis
#hosts:     db files nisplus nis dns

Cheers

Kim

-- 
====================================================================== 
Kim Covil - Australian Geodynamics CRC   E-mail: kimc at ned.dem.csiro.au 
            CSIRO Exploration & Mining   Tel: +61 8 9284 8425   ,-_!\
            PO Box 437, Nedlands,        Fax: +61 8 9389 1906  /     \
            Western Australia  6009                            *_,-._/   
=================================================================== v 
   Please direct all personal e-mail to kimbotha at it.net.au


More information about the plug mailing list