[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bind responding incorrectly



Em Ter, 2003-11-11 às 17:22, Michael Loftis escreveu:
> --On Tuesday, November 11, 2003 14:36 -0200 Paulo Ricardo Bruck 
> <pauloric@contato.com.br> wrote:
> 
> > Hi guys
> >
> > After 1 week looking at named.conf that? driven me crazy I decided ask
> > some help.
> >
> > What happens.
> > a) a local machine can't resolv a name using internal DNS.
> > b) when slave stop the transfer  we have all zones w/ external addresses
> > even the lazzuril.com.br.local
> >
> > I know this a newbie mistake , but I can find my error.
> >
> > below the named.conf and the internal and external zone.
> >
> > Thxs in advanced
> >
> 
> I believe you can simply re-order those views  (IE have the more specific 
> local view listed first).  But better still would to be to redefine the 
> match for the 'world' view so it excluded your local clients.
> 
> match-clients {
> 	!local-net;
> };

Hi list, Michael


I've tried your suggestion , but if I insert 
!local-net;  instead 
any;
it stops answering the world....8( 
but I agree w/ you that should the best way to use...

BTW, if I change the "views" when slave transfer the zones, it will
thansfers the content of lazzuril.com.br.local to lazzuril.com.br too...
estrange isn't???

Any other idea whatś is causing this behavior?? just reviewing

__________________________________________________________________________
named.conf  ( in chrooted way)

acl internal-dns-servers {
   192.168.10.6;        // ns1.lazzuril.com.br
   192.168.11.18;       // ns2.lazzuril.com.br
};

acl external-dns-servers {
   200.245.92.131;      // ns1.lazzuril.com.br
   200.232.89.35;       // ns2.lazzuril.com.br
};

acl local-net {
   127.0.0.0/8;         // localhost
   192.168.10.0/24;     // montanhao
   192.168.11.0/24;     // bafim
};

options {
        directory "/var/named";

------snip        

        listen-on {
                127.0.0.1/32;
                192.168.10.6/32;
 };
        // regras para a lazzuril/bafim
        allow-recursion {
                local-net;
        };
};


view "world" {
   match-clients {
      any;
   };

   recursion no;

  zone "lazzuril.com.br" {
      type master;
      file "lazzuril.com.br";
      notify yes;
      allow-transfer {
         internal-dns-servers;
         external-dns-servers;
      };
   };
 
----snip

};

view "local" {
   match-clients {
      local-net;
   };

   recursion yes;

   zone "." {
      type hint;
      file "named.ca";
   };

   zone "0.0.127.in-addr.arpa" {
      type master;
      file "named.local";
   };

   zone "lazzuril.com.br" {
      type master;
      file "lazzuril.com.br.local";
      notify yes;
      allow-transfer {
         internal-dns-servers;
      };
   };

----snip

};


> 
> --
> Michael Loftis
> Modwest Sr. Systems Administrator
> Powerful, Affordable Web Hosting



Reply to: