martes, 14 de agosto de 2012

who create view internal and external in bind9 debian squeeze 6.0

Hola mis amados lectores crearemos una vista interna y externa, para la LAN y WAN

# match-clients: identifica las acl que tendrán permisos para realizar consultas a nuestro dns 
# lan; localhost; dmz acl creadas en el archivo named.conf-options heredadas como variables.

root@localhost# cat >> /etc/bind/named.conf.default-zones << 'EOF' 
view "INTERNA" { 
        match-clients { lan; localhost; };
        recursion yes;
        notify yes;
        zone "." {
                type hint;
                file "/etc/bind/db.root";
        };  

        zone "localhost" {
                type master;
                file "/etc/bind/db.local";
        };  

        zone "127.in-addr.arpa" {
                type master;
                file "/etc/bind/db.127";
        };  

        zone "0.in-addr.arpa" {
                type master;
                file "/etc/bind/db.0";
        };  

        zone "255.in-addr.arpa" {
                type master;
                file "/etc/bind/db.255";
        };  
    
        zone "acti.ich.edu.pe" {
                type master;
                file "/var/cache/bind/acti.ich.edu.pe.INTERNA.db";
        };  
};
view "EXTERNA" {
        match-clients {any;};
        recursion no; 
        allow-recursion {none;};
        notify no;

        zone "."{
          type hint;
          file "/etc/bind/db.root";
        };
};
EOF

No hay comentarios:

 
;