Using dnscache locally with FBSD 6.x

Bill Moran wmoran at
Tue Aug 1 12:54:50 UTC 2006

In response to "Mark Powell" <M.S.Powell at>:

> Hi,
>    I want to put a local DJB dnscache on each host. This is primarily to 
> improve reliabilty during network glitches. They will have cached most of 
> our local addresses and will not hang if one of their dns servers 
> disappears.
>    However, I use svscan to start up dnscache, and that starts very late in 
> the boot. That means I can't just have the single "nameserver" 
> line in resolv.conf, as every lookup would timeout until dnscache started. 
> That means I need to replace resolv.conf early in the boot with the 
> addresses of remote dns caches:

Have you investigated the possibility of moving svscan's startup earlier in
the boot sequence?  I don't know whether the svscan startup script is rcng
compliant yet, but if it is, you could move it to /etc/rc.d and move it
_way_ up in the startup sequence.

Another option is to put addresses that need to resolve before svscan has
started into /etc/hosts so that they don't need DNS.  This could be
a maintenance nightmare, though, if there are many addresses.

Bill Moran
Collaborative Fusion Inc.

IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.

More information about the freebsd-questions mailing list