disabling caching on selected zones

phn at icke-reklam.ipsec.nu phn at icke-reklam.ipsec.nu
Sun Aug 22 10:32:00 UTC 2004


Ollie Wild <aaw at rincewind.tv> wrote:
> Hi.  I'm running a simple bind configuration on my home network.  The 
> bind daemon is authoritative for my local network.  Any requests outside 
> my local network are forwarded to my ISP:

>     zone  "." {
>             type forward;
>             forward only;
>             forwarders {
>                     xx.xx.xx.xx;
>             };
>     };

> I also have a vpn to my office network, which I only enable 
> occasionally.  The name of our office mail server resolves externally, 
> but access is disabled.  Once the vpn is active, the same hostname 
> resolves to an internal IP from which I can access mail.

> The problem is that named caches the external IP, so everytime I enable 
> the vpn, I have to restart named to access my mail.  Is there a way to 
> explicitly configure bind to disable caching of results from a specific 
> zone?

> Thanks,
> Ollie Wild

Yes. 

first remove the global "forward statements", they make no sense in most
applications.  Secondly define a "forward zone" to your office nameserver
( i assume your office runs split-dns, possibly using views, giving out 
Interhet-addresses to anyone on Internet, and handing out 1918-addresses
to anyone on inside. You would like to belong to the "insiders" i assume.




-- 
Peter Håkanson         
        IPSec  Sverige      ( At Gothenburg Riverside )
           Sorry about my e-mail address, but i'm trying to keep spam out,
	   remove "icke-reklam" if you feel for mailing me. Thanx.


More information about the bind-users mailing list