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

bind responding incorrectly



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

__________________________________________________________________________
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";
        
        // query-source address * port 53;
        dump-file "/var/named/dump/named_dump.db";
        statistics-file "/var/named/dump/named.stats";

        // bind 9.2.0 doesn't implement this memstatistics option
        // memstatistics-file "/var/named/dump/named.memstats";

        // remove this next line if you want named to listen on
        // all available interfaces, or adjust add new ones as
        // you see fit
        listen-on {
                127.0.0.1/32;
                192.168.10.6/32;
 };
        // regras para a lazzuril/bafim
        allow-recursion {
                local-net;
        };
};

//
// a caching only nameserver config
key key_rndc {
        algorithm "hmac-md5";
        secret "mdWK1FbKJYdFuDqwqQpilA==";
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { key_rndc; };
};



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;
      };
   };
 

   zone "92.245.200.in-addr.arpa" {
      type master;
      file "92.245.200.in-addr-arpa";
      allow-transfer {
         internal-dns-servers;
         external-dns-servers;
      };
   };

   zone "89.232.200.in-addr.arpa" {
      type master;
      file "89.232.200.in-addr-arpa";
      allow-transfer {
         internal-dns-servers;
         external-dns-servers;
      };
   };
};

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;
      };
   };
   zone "10.168.192.in-addr.arpa" {
      type master;
      file "10.168.192.in-addr-arpa";
      allow-update { none; };
      notify yes;
      allow-transfer {
         internal-dns-servers;
      };
   };

   zone "11.168.192.in-addr.arpa" {
      type master;
      file "11.168.192.in-addr-arpa";
      allow-update { none; };
      notify yes;
      allow-transfer {
         internal-dns-servers;
      };
   };

   zone "92.245.200.in-addr.arpa" {
        type master;
        file "92.245.200.in-addr-arpa";
        allow-update { none; };
   };

   zone "89.232.200.in-addr.arpa" {
        type master;
        file "89.232.200.in-addr-arpa";
        allow-update { none; };
   };

};
________________________________________________________________________________

lazzuril.com.br
$TTL 86400      ; 1 day
@       IN      SOA     lazzuril.com.br. postmaster.lazzuril.com.br. (
                                2003110700 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                NS      ns1.lazzuril.com.br.
                NS      ns2.lazzuril.com.br.
                MX      10      ns1.lazzuril.com.br.
                MX      20      ns2.lazzuril.com.br.
;
; Servidores de nomes
;
ns1                     IN      A       200.245.92.131
ns2                     IN      A       200.232.89.35
;
; Servidores web
;
; fabrica
www                     IN      A       200.245.92.133
; bafim
www                     IN      A       200.232.89.37

-----snip-------
__________________________________________________________________
lazzuril.com.br.local
$TTL 86400      ; 1 day
@       IN      SOA     lazzuril.com.br. postmaster.lazzuril.com.br. (
                                2003110700 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                NS      ns1.lazzuril.com.br.
                NS      ns2.lazzuril.com.br.
                MX      10 mail.lazzuril.com.br.
                MX      20 mail2.lazzuril.com.br.
;
; Nomes de maquinas
;
ns1             IN      A       192.168.10.6
ns2             IN      A       192.168.11.18
www             IN      A       192.168.10.39
www             IN      A       192.168.11.45
-------------snip------------
__________________________________________________________________________




Reply to: