How can I know if I have problems with my views?

Carlos Ribas carlos at ansp.br
Tue Mar 27 22:16:30 UTC 2012


Hello all,

    I'm with problems in my dns. Some external clients access my zones
without problem, but others can´t access because they are receiving
internal IP instead of public ones. I'm using views and below is the basic
configuration. Is there something wrong?


acl rede_local { 10.0.1.0/24; };

acl rede_confiavel {
                            my_public_ips;
};

// ===============
// View interno
// ===============

view "internal" {
      match-clients { rede_local; };
      allow-query { rede_local; };
      allow-recursion { rede_local; };
      allow-query-cache { rede_local; };
      zone-statistics yes;

      zone "example.br" {
            type master;
            file "/var/named/db.example.br.intranet";
      };
      zone "1.0.10.in-addr.arpa"  {
           type master;
           file "/var/named/db.10_0_1";
      };

include "/etc/bind/zonas/default";
include "/etc/bind/zonas/my_zones";
include "/etc/bind/zones.rfc1918";
};

// ===============
// View externo
// ===============

view "external" {
      match-clients { rede_confiavel; };
      allow-query { rede_confiavel; };
      allow-recursion { rede_confiavel; };
      allow-query-cache { rede_confiavel; };
      zone-statistics yes;

      zone "example.br" {
            type master;
            file "/var/named/db.example.br";
      };

include "/etc/bind/zonas/default";
include "/etc/bind/zonas/my_zones";
include "/etc/bind/zones.rfc1918";

};

// ===============
// View recursivo
// ===============

view "recursion" {
     match-clients { any; };
     zone-statistics yes;
     recursion no;
     additional-from-auth no;
     additional-from-cache no;

     zone "example.br" {
           type master;
           file "/var/named/db.example.br";
     };

include "/etc/bind/zonas/my_zones";
include "/etc/bind/zones.rfc1918";
};

Best regards,

---------------------------------
Carlos Eduardo Ribas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20120327/aa2d5429/attachment.html>


More information about the bind-users mailing list