resolv.conf - hosts

Charlie Schluting charlie at schluting.com
Thu Nov 18 12:57:56 PST 2004


Brian Henning wrote:
> Greetings All:
> 
> Is it possible to add a line above that name server entries in the
> resolv.conf file that will tell the system to check the hosts file for
> a resolution before querying the dns server(s)?
> 
> Thanks,
> 

Depending on your version of freebsd, nsswitch.conf will have:
hosts: files dns

If you don't have /etc/nsswitch.conf ...I don't know how it was done 
before that was introduced/brought back.

-Charlie


More information about the freebsd-questions mailing list