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

Mark Andrews marka at isc.org
Tue Mar 27 23:04:27 UTC 2012


In message <CAGdn3FHQzc=KFLN+egfkcnQbUuZm9Lpj+VrLU0Lov4nZm6VBQw at mail.gmail.com>,
> 
> 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; };

	Don't forget loopback addressess.  127/8 is also local.
 
> 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
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list