forward DNS query for certain entries in certain zone

Barry Margolin barmar at alum.mit.edu
Tue Jul 4 20:57:26 UTC 2006


In article <e8ehka$10vv$1 at sf1.isc.org>,
 "besnard michel" <mbesnard at gmail.com> wrote:

> hi,
> i need to solve locally on my BIND DNS cache some DNS requests entries
> from a zone (but all entries in this zone) even i'm not authoritative

Did you mean to say "but NOT all entries in this zone"?

> and for the other entries (not solved locally) i want to forward the
> query to another server
> 
> is there any bind configuration for this ?
> 
> is this configuration is good for this :
> 
> # DNS CACHE CONFIG
> options {
>   directory "/var/named";
>   forwarders { 192.168.0.1; };
> };
> 
> # EXCEPTION FOR SOME DNS RECORDS OF FOO.EXAMPLE
> zone "foo.example" {
>  type master;
>  file "db.foo.example";
>  forwarders {};
> };

If you do this, you'll be authoritative for the entire foo.example zone.  
If you just want to override host1.foo.example and host2.foo.example, 
then do the following:

zone "host1.foo.example" {
  type master;
  file "db.host1.foo.example";
};
zone "host2.foo.example" {
  type master;
  file "db.host2.foo.example";
};

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list