Ir al contenido principal

Instalación DNS BIND

DNS BIND.
Instalación en Español e Ingles.
Lo primero que tenemos que hacer para configurar un servidor DNS (bind)
en Linux Ubuntu es instalarlo desde los repositorios poniendo en consola:

The first thing we have to do to configure a DNS server (bind) in Linux
Ubuntu is to install it from the repositories by putting in console:
sudo aptitude install bind9
A continuación nos vamos al directorio del programa para editar los archivos de configuración necesarios:
Next we go to the program directory to edit the necessary configuration files:
cd /etc/bind/
Es recomendable acceder a este directorio como root (sudo su) para no tener problemas de permisos denegados cuando copiemos ficheros o modifiquemos los ya existentes.Una vez que estamos en este directorio, basta con editar el archivo named.conf.local
It is advisable to access this directory as root (sudo su) so as not to have permission problems denied when copying files or modifying existing ones.
Once we are in this directory, just edit the file named.conf.local
gedit named.conf.local
Y en el archivo que se nos abrirá añadimos lo siguiente:
And in the file that will open we add the following:

Es importante el “file” ya que hace referencia al fichero de configuración que importamos.Ahora creamos el fichero de configuración a partir de uno ya creado (db.local) poniendo:
The "file" is important since it refers to the configuration file that we import.
Now we create the configuration file from one already created (db.local) putting:
cp db.local db.gestionderedes

Y a continuación modificamos los “localhost” por el nombre del dominio que hemos elegido: “gestionderedes.sergiogabriel.net”.
And then we modify the "localhost" by the name of the domain we have chosen: "gestionderedes.sergiogabriel.net".
Una vez que hemos guardado el fichero de configuración, reiniciamos el proceso bind con el siguiente comando:
Once we have saved the configuration file, we restart the bind process with the following command:
sudo /etc/init.d/bind9 restart
Una vez iniciado, editamos el fichero de configuración resolv.conf para que el ordenador utilice este servidor DNS que hemos configurado:
Once started, we edit the resolv.conf configuration file so that the computer uses this DNS server that we have configured:
sudo gedit /etc/resolv.conf
Y únicamente dejamos la siguiente línea en el fichero de texto plano:
And we only leave the following line in the plain text file:
nameserver 127.0.0.1
Si este es el servidor, deberemos hacer lo mismo con el resto de ordenadores de la red local pero en lugar de poner 127.0.0.1 tendremos que poner la IP privada del ordenador servidor.Una vez que hemos hecho esto, ya tenemos todo listo para empezar la batería de pruebas y comprobar que lo hemos hecho todo bien. En la siguiente captura de pantalla se pueden ver las pruebas realizadas:
If this is the server, we must do the same with the rest of the computers on the local network but instead of setting 127.0.0.1 we will have to put the private IP of the server computer.Once we have done this, we have everything ready to start the battery of tests and verify that we have done everything right. In the following screenshot you can see the tests performed:
Ahora vamos a configurar el servidor DNS para que resuelva dominios a la inversa, poniendo la dirección IP y que nos diga a qué dominio pertenece dicha dirección IP.Para conseguir nuestro objetivo, deberemos añadir al fichero /etc/bind/named.conf.local que utilizamos anteriormente las líneas que se ven en la captura de pantalla:
Now we are going to configure the DNS server to resolve domains in reverse, setting the IP address and telling us which domain this IP address belongs to.To achieve our goal, we must add to the file /etc/bind/named.conf.local that we previously used the lines seen in the screenshot:
También deberemos copiar el archivo de configuración por defecto para editarlo. A partir del archivo db.127 creamos el db.192:
We must also copy the default configuration file to edit it. From the db.127 file we create db.192:
cp db.127 db.192
Una vez que lo hemos creado, basta con editarlo con la siguiente información cambiando los localhost y la última línea:
Once we have created it, just edit it with the following information by changing the localhost and the last line:
Una vez realizado estos pasos, reiniciamos de nuevo el proceso bind:
Once these steps have been completed, we restart the bind process again:
sudo /etc/init.d/bind9 restart
Y comprobamos que ha funcionado correctamente:
And we check that it worked correctly:

Comentarios

Entradas populares de este blog

Ubuntu

Instala y Configura Aplicaciones y Servicios Integrantes: Cruz Alavez Gerardo. Flores Flores Alexis Geovanni. Martinez Gonzalez Josue Tadeo. Reyes Garcia Francisco Salvador Grupo: 512