Servidor DNS problema con la resolución de nombres

Todos los comentarios sobre redes y servidores en linux y su interacción con otros sistemas operativos.
Responder
P4C0
Forista Nuevo
Forista Nuevo
Mensajes: 19
Registrado: Mar Ene 19, 2010 12:44 am

Servidor DNS problema con la resolución de nombres

Mensaje por P4C0 »

Hola.

Estoy montándome un servidor con Debian 11, y a la hora de configurar las DNS locales, me devuelve errores en la resolucion de nombres.

El nombre de mi dominio es miva.sytes.net y utilizo noip porque tengo IP dimanicas en casa.

/etc/bind/named.conf.local

Código: Seleccionar todo

//
// Do any local configuration here
//

zone "miva.sytes.net" {
    type master;
    file "/etc/bind/db.miva.sytes.net";
};

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


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

Código: Seleccionar todo

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones"; 
/etc/bind/named.conf.options

Código: Seleccionar todo

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.


        forwarders {

                // Google Public DNS (IPv4)
                8.8.8.8;
                8.8.4.4;
                // Google Public DNS (IPv6)
                2001:4860:4860::8888;
                2001:4860:4860::8844;

                // www.noip.com servers
                158.247.7.200;

                // ADSL router
                192.168.1.1;
        };

        // forwarders {
        //      0.0.0.0;
        // };

        //========================================================================
        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        //========================================================================
        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        // listen-on-v6 { any; };
};
/etc/bind/db.miva.sytes.net

Código: Seleccionar todo

;
; BIND zone file for miva.sytes.net
;

$TTL    3D
@       IN      SOA     ns.miva.sytes.net.    root.miva.sytes.net. (
                        2017061201      ; serial
                        8H              ; refresh
                        2H              ; retry
                        4W              ; expire
                        1D )            ; minimum
;
                NS      ns              ; Inet address of name server
                MX      10 mail         ; Primary mail exchanger

ns              A       192.168.1.100
mail            A       192.168.1.100

miva.sytes.net. A       192.168.1.100
server          A       192.168.1.100

virtual         A       192.168.1.101

router          A       192.168.1.1     ; router ADSL
gateway         CNAME   router
gw              CNAME   router


proxy           CNAME   server
www             CNAME   server
ftp             CNAME   server

/etc/bind/db.1.168.192

Código: Seleccionar todo

;
; BIND zone file for 192.168.1.xxx
;

$TTL    3D
@       IN      SOA     ns.miva.sytes.net.    root.miva.sytes.net. (
                        2017061201      ; serial
                        8H              ; refresh
                        2H              ; retry
                        4W              ; expire
                        1D )            ; minimum
;
                NS      ns.miva.sytes.net.    ; Nameserver address

100             PTR     server.miva.sytes.net.
100             PTR     ns.miva.sytes.net.
100             PTR     mail.miva.sytes.net.
101             PTR     virtual.miva.sytes.net.
1               PTR     router.miva.sytes.net.
/etc/resolv.conf

Código: Seleccionar todo

domain miva.sytes.net
search miva.sytes.net
nameserver 127.0.0.1
nameserver ::1

nameserver 192.168.1.10

Los resultados de

Código: Seleccionar todo

root@debian:~# sudo named-checkzone 1.168.192.in-addr.arpa /etc/bind/db.1.168.192
zone 1.168.192.in-addr.arpa/IN: loaded serial 2017061201
OK

Código: Seleccionar todo

root@debian:~# sudo named-checkzone miva.sytes.net /etc/bind/db.miva.sytes.net
zone miva.sytes.net/IN: loaded serial 2017061201
OK

Si hago nslookup a miva.sytes.net

Código: Seleccionar todo

root@debian:~# nslookup miva.sytes.net
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   miva.sytes.net
Address: 79.152.185.224
Pero si pido que resuelva server o gayeway no funciona

Código: Seleccionar todo

root@debian:~# nslookup server
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find server: NXDOMAIN



root@debian:~# nslookup gateway
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find gateway: NXDOMAIN

Muchas gracias de antemano

Responder
  • Temas similares
    Respuestas
    Vistas
    Último mensaje