lunes, 24 de septiembre de 2012

Practica resolución inversa

  1. Creamos el registro de zona directa que se puede copiar de /etc/bind/named.conf.default-zones y lo llamamos named.conf.local
  2. Reemplazamos los siguientes datos:
    1.  zone "127.in-addr.arpa" {
          type master;
          file "/etc/bind/db.127";
    2.  zone "20.172.in-addr.arpa" {
          type master;
          file "/etc/bind/db.20.172";
      };
  3. Editamos el documento nuevo llamado db.20.172:
    1. que lo podemos copiar de db.127
    2. db .127
      1. ;
        ; BIND reverse data file for local loopback interface
        ;
        $TTL    604800
        @    IN    SOA    localhost. root.localhost. (
                          1        ; Serial
                     604800        ; Refresh
                      86400        ; Retry
                    2419200        ; Expire
                     604800 )    ; Negative Cache TTL
        ;
        @    IN    NS    localhost.
        1.0.0    IN    PTR    localhost.
      2. db.20.172
        1. ;
          ; BIND reverse data file for local loopback interface
          ;
          $TTL    604800
          20.172.in-addr.arpa.    IN    SOA    servidor.aula202.com. jon.lopez.egibide.org. (
                            1        ; Serial
                       604800        ; Refresh
                        86400        ; Retry
                      2419200        ; Expire
                       604800 )    ; Negative Cache TTL
          ;
          20.172.in-addr.arpa.    IN    NS    servidor.aula202.com.
          106.202        IN    PTR    servidor.aula202.com.
          105.202        IN    PTR    p05.aula202.com.
          104.202        IN    PTR    p04.aula202.com.
          103.202        IN    PTR    p03.aula202.com.
  4. Reiniciamos la tabla de DNS (nslookup)
    1. /etc/init.d/bind9 restart 
  5. Probamos si da respuesta
    1. nslookup - 172.20.202.106
    2. root@A202P06:/home/dinux# nslookup - 172.20.202.106
      > 172.20.202.106
      Server:        172.20.202.106
      Address:    172.20.202.106#53

      106.202.20.172.in-addr.arpa    name = servidor.aula202.com.
      >
  6. FIN

No hay comentarios:

Publicar un comentario