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
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to