resolv.conf - hosts
Louis LeBlanc
FreeBSD at keyslapper.org
Thu Nov 18 12:56:58 PST 2004
On 11/18/04 02:43 PM, Brian Henning sat at the `puter and typed:
> 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,
>
> Brian
That would be the /etc/host.conf file. Standard 5.3 version goes like
this:
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis
So it will do that automagically anyway. If yours looks different than
this, that would probably be why you're not getting the host lookup.
Lou
--
Louis LeBlanc FreeBSD at keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org Ô¿Ô¬
furbling, v.:
Having to wander through a maze of ropes at an airport or bank
even when you are the only person in line.
-- Rich Hall, "Sniglets"
More information about the freebsd-questions
mailing list