Servicio de nombre de dominio (DNS)
Anterior
Siguiente

Servicio de nombre de dominio (DNS)

El Servicio de Nombres de Dominio (Domain Name Service, DNS) es un servicio de Internet que hace corresponder direcciones IP con nombres de dominio totalmente cualificados (FQDN). De esta forma, DNS nos evita tener que recordar direcciones IP. Los ordenadores que relizan DNS se denominan servidores de nombres. Ubuntu viene equipado con BIND (Berkley Internet Naming Daemon, Demonio de Nombres de Internet de Berkley), el programa usado más comúnmente para gestionar un servidor de nombres en GNU/Linux.

Instalación

En un terminal, introduzca el siguiente comando para instalar dns:

sudo apt-get install bind

Configuración

Los archivos de configuración del DNS están guardados en el directorio /etc/bind . El archivo de configuración principal es /etc/bind/named.conf. El contenido del archivo de configuración por defecto se muestra debajo:

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind/README.Debian for information on the 
// structure of BIND configuration files in Debian for BIND versions 8.2.1 
// and later, *BEFORE* you customize this configuration file.
//

include "/etc/bind/named.conf.options";

// reduce log verbosity on issues outside our control↵
logging {
	category lame-servers { null; };
	category cname { null; };
};

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

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";
};

// add local zone definitions here
include "/etc/bind/named.conf.local";

La línea include especifica el archivo que contiene las opciones del DNS. La línea directory en el archivo de opciones de dice al DNS donde buscar los archivos. Todos los archivos usados por BIND serán relativos a ese directorio.

El fichero llamado /etc/bind/db.root describe los servidores de nombres raiz en el mundo. Los servidores cambian con el tiempo y deben de ser mantenidos.

The zone section defines a master server, and it is stored in a file mentioned against file tag. Every zone file contains 3 resource records (RRs): an SOA RR, an NS RR and a PTR RR. SOA is short of Start of Authority. The "@" is a special notation meaning the origin. NS is the Name Server RR. PTR is Domain Name Pointer. To start the DNS server, run the following command from a terminal prompt:

sudo /etc/init.d/bind start

Para más detalles puede accedar a la documentación mencionada en la sección de referencias.

Referencias

DNS HOWTO

Anterior
Siguiente
Inicio