jueves, 15 de diciembre de 2011

error (network unreachable) resolving in bind dns named

Holas mis amados lectores volvemos a las andadas después de unas largas vacaciones, configurando un servidor dns desde cero, existen muchos y muchísimos tutoriales sobre eso, creo que la función de un sysadmin se limita a buscar en google y resolver errores, esta publicación no es sobre como configurar sino como se presenta el error que comento a continuación y como lo corregí.


Ver el siguiente enlace de como configurar un servidor dns enjaulado.
Configurando el archivo named.conf.options
root@localhost# cat /etc/bind/named.conf.options
acl lan { 172.16.7.0/24; 127.0.0.1; };
options {
         listen-on {127.0.0.1; 172.16.7.142; };
         allow-query { localhost; lan; };
         listen-on-v6 { none; };
};

logging {
        channel seguridad {
                file "/var/log/named/seguridad.log" versions 3 size 2m;
                severity info;
        };
        channel consultas {
                file "/var/log/named/consultas.log" versions 3 size 2m;
                severity debug;
        };
        channel general {
                syslog local4;
                severity info;
                print-category yes;
        };
        category security { seguridad; default_syslog; };
        category notify { general; };
        category client { general; };
        category resolver { general; };
};
root@localhost# /etc/init.d/bind9 restart
root@localhost# tail -f /var/log/messages
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'wikipedia-lb.wikimedia.org/A/IN': 2001:500:e::1#53
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'usemoslinux.blogspot.com/A/IN': 2001:503:231d::2:30#53
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'www.linux-es.org/A/IN': 2600:2002::76#53
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'www.linux.com/A/IN': 2001:503:a83e::2:30#53
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'www.linux.org/A/IN': 2001:500:c::1#53
Dec 15 15:06:52 colonial named[4857]: error (network unreachable) resolving 'www.linux.org/A/IN': 2001:500:48::1#53
Dec 15 15:06:53 colonial named[4857]: error (network unreachable) resolving 'ns3.cipher.net.pe/A/IN': 2001:500:2e::1#53
Dec 15 15:06:53 colonial named[4857]: error (network unreachable) resolving 'ns2.p13.dynect.net/A/IN': 2001:500:94::100#53
Dec 15 15:06:53 colonial named[4857]: error (network unreachable) resolving 'ns4.p13.dynect.net/AAAA/IN': 2001:500:90::100#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving './NS/IN': 2001:500:1::803f:235#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving './NS/IN': 2001:503:c27::2:30#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving 'relay.eunet.no/A/IN': 2001:7fe::53#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving 'linux.org.ar/A/IN': 2001:67c:e0::59#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving 'ns1.ny4487.com.ar/A/IN': 2001:620::5#53
Dec 15 15:07:57 colonial named[4857]: error (network unreachable) resolving 'ns2.netfonds.no/AAAA/IN': 2001:8c0:8200:1::2#53
Dec 15 15:07:58 colonial named[4857]: error (network unreachable) resolving 'relay.eunet.no/A/IN': 2001:8c0:2001::3:53#53
Dec 15 15:07:58 colonial named[4857]: error (network unreachable) resolving 'lists.debian.org/A/IN': 2607:f8f0:610:4000:214:38ff:feee:b65a#53
Dec 15 15:07:58 colonial named[4857]: error (network unreachable) resolving 'b.ns.bytemark.co.uk/A/IN': 2001:630:181:35::83#53
¿Ahora, qué hacemos? buscando en san google la solución:
root@localhost# cat /etc/default/bind9 
RESOLVCONF=yes
OPTIONS=" -4 -u bind -t /var/chroot/bind9"

No hay comentarios:

 
;