In message <CAGdn3FHQzc=kfln+egfkcnqbuuzm9lpj+vrlu0lov4nzm6v...@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: ma...@isc.org _______________________________________________ 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