Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2007 21:45:30 -0500
From:      "Jack Barnett" <>
To:        freeBSD <>
Subject:   DNS Cache - Bind
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I'm running Bind 9.3.4 on FreeBSD 6.2 for my local network.

It doesn't have any zones, it's just a local DNS that has a bunch of forwarders.

The first request is slow (between 150 and 300 ms) - but after that
(the next query on same domain) is fast (less then 10 ms usually).
This is nice and working the way I like it. :)

What I'm wondering though is:

a) How do I flush the cache if I need to (ie. need to get a new update
from the forwards) - just restart named?

b) Are there any settings I can tweak that determine how long the
cache is kept?  (ie. Say I want to keep all queries for 7 days before
they are queried from the upstream DNS servers).  [This will probably
screw up dynamic DNS sites, but want to see what settings are

c) Is there a easy way to 'blacklist' sites?  Say I want
'' to resolve to

Basically I want to take this host file:
and then pump it into my DNS server, that way all the LAN clients are
"protected" from these sites.
Is there a way to do that?


Want to link to this message? Use this URL: <>