|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: /ect/resolv.conf on obsd
From: Nick Guenther (kousue
gmail.com)
Date: Mon Feb 20 2006 - 21:26:05 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/20/06, reader
newsguy.com <reader
newsguy.com> wrote:
> Running current on a home lan of several computers.
> Running bind-9.3.2 (not on the obsd box)
>
> Trying to understand the various ways of using keywords in
> /etc/resolv.conf.
>
> On my setup the obsd box resolv.conf looks like:
>
> domain local.net0
> nameserver 192.168.0.4 # local lan name server
> nameserver 192.168.0.20 # linked to IPs nameservers
> lookup file bind
>
> local.net0 is my home lan domain.
>
> From reading `man resolv.conf' It sounds like the last line above
> aught to make my resolver look at /etc/hosts before querying the
> nameserver. However I'm not really sure what this passage in man page
> is saying exactly:
>
> lookup This keyword is used by the library routines gethostbyname(3)
> and gethostbyaddr(3). It specifies which databases should be
> searched, and the order to do so. The legal space-separated
> values are:
>
> bind Use the Domain Name server by querying named(8).
> file Search for entries in /etc/hosts.
> yp Talk to the YP system if ypbind(8) is running.
>
> If the lookup keyword is not used in the system's resolv.conf
> file then the assumed order is bind file. Furthermore, if
> the system's resolv.conf file does not exist, then the only
> database used is file.
Just reading this it sounds like "lookup bind" causes it to talk to
named(8) and skip /etc/hosts. You probably want "lookup file bind" to
cause it to search hosts and then DNS.
-Kousu
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]