Using dnscache locally with FBSD 6.x
RW
list-freebsd-2004 at morbius.sent.com
Tue Aug 1 15:53:17 UTC 2006
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
More information about the freebsd-questions
mailing list