viernes, 29 de noviembre de 2013

Zona de resolución inversa (versión 2)

Configuración y comprobación de una zona inversa ------------------------------

profes@AI4PC150:~$ sudo gedit /etc/bind/named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

//Zona de resolución directa

zone "aulaI4.com" {
   type master;
   file "/etc/bind/db.aulaI4.com";
};


//Zona de resolución inversa versión 2

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



profes@AI4PC150:~$ sudo gedit /etc/bind/db.192.168.1

;
; BIND resolución inversa, dominio raíz in-addr.arpa
;
$TTL    38400    ;segundos que puede estar el registro en la caché
1.168.192.in-addr.arpa.    IN    SOA    pc149.aulaSER.comprofe.aulaSER.com. (
             2011100401        ; Número de serie / Serial
              10800        ; Actualización / Refresh
               3600        ; Tiempo de reintentos / Retry
             604800        ; Caducidad / Expire
              38400 )    ; Valor TTL / Negative Cache TTL
;
1.168.192.in-addr.arpa.    IN    NS    pc149.aulaSER.com.

149.1.168.192.in-addr.arpa.    IN    PTR    pc149.aulaSER.com.
149            IN    PTR    pc149.aulaSER.com.


101            IN    PTR    pc101.aulaSER.com.
102            IN    PTR    pc102.aulaSER.com.
103            IN    PTR    pc103.aulaSER.com.
104            IN    PTR    pc104.aulaSER.com.
105            IN    PTR    pc105.aulaSER.com.
106            IN    PTR    pc106.aulaSER.com.
107            IN    PTR    pc107.aulaSER.com.
108            IN    PTR    pc108.aulaSER.com.
109            IN    PTR    pc109.aulaSER.com.
110            IN    PTR    pc110.aulaSER.com.
111            IN    PTR    pc111.aulaSER.com.
112            IN    PTR    pc112.aulaSER.com.
113            IN    PTR    pc113.aulaSER.com.
114            IN    PTR    pc114.aulaSER.com.
115            IN    PTR    pc115.aulaSER.com.

22            IN    PTR    pcp22.aulaSER.com.

150            IN    PTR    pc150.aulaSER.com..

profes@AI4PC150:~$ named-checkzone 1.168.192.in-addr.arpa /etc/bind/db.192.168.1
zone 1.168.192.in-addr.arpa/IN: loaded serial 2013102301
OK

profes@AI4PC150:~$ sudo service bind9 restart

No hay comentarios:

Publicar un comentario