Date: Tue, 1 Aug 2006 16:53:10 +0100 From: RW <list-freebsd-2004@morbius.sent.com> To: freebsd-questions@freebsd.org Subject: Re: Using dnscache locally with FBSD 6.x Message-ID: <200608011653.12446.list-freebsd-2004@morbius.sent.com> In-Reply-To: <20060801133245.B9668@rust.salford.ac.uk> References: <20060801133245.B9668@rust.salford.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 01 August 2006 13:41, Mark Powell wrote:
> That means I need to replace resolv.conf early in the boot with the
> addresses of remote dns caches:
>...
> and then in dnscache's svscan startup file I can then put it back to:
>
> -----
> nameserver 127.0.0.1
The nameservers in resolv.conf are tried in order. You can simply put
127.0.0.1 first, followed by the other servers. This only adds a few seconds
to the startup, it not like the timeouts of several minutes that you get when
no nameserver is available.
If your problem is that the external nameservers come from dhcp then just add
the line
prepend domain-name-servers 127.0.0.1;
to /etc/dhclient.conf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608011653.12446.list-freebsd-2004>
