INSTALACIÓN.
1. Lo primero que haré es mirar como
tengo configurada o configuradas la o las tarjetas de red en mi servidor con el
comando ifconfig
2. Lo primero que haremos es asignar
una IP estática a la tarjeta de red que dará servicio a nuestra red. Lo haremos
editando el fichero /etc./network/inerfaces.
3.
A
continuación, reiniciamos la red con el comando /etc./init. d/networking
restart y comprobaremos que la
configuración de red es correcta con el comando ifconfig que ya utilizamos
antes.
4. Una vez instalado, ya podemos
pasar a la configuración del servidor DNS. Todos los ficheros que necesitamos
editar se encuentran en el directorio /etc/bind/. Allí encontraremos entre otros
los ficheros named.conf.options y /etc/bind/named.conf.local que serán los
primeros que editaremos.
Editar el fichero /etc/bind/named.conf.options
El primer
fichero que editaremos, será el archivo /etc/bind/named.conf.options. En este archivo sólo hemos de descontentar
las líneas de forward only y forwarders como se puede ver en la imagen de abajo
y añadir las ip de servidores DNS externos donde consultará nuestro servicio en
caso de que no encuentre la respuesta a nuestra petición.
5. Después
pasaremos a editar el archivo /etc/bind/named.conf.local.
En este archivo especificaremos las zonas de búsqueda directa e inversa del
servicio DNS. El dominio de nuestra
zona directa y la subred de la zona inversa. También tendremos que incluir qué
tipo de servicio es (maestro o esclavo) y en que archivos hará la búsqueda de
nombres.
6. El siguiente archivo a editar es
el que contendrá las tablas de la búsqueda directa /etc/bind/db.webebre.net.host. Este archivo contiene las tablas
de búsqueda directa. Las primeras líneas son unos parámetros relacionados con
la actualización del DNS (número de serie y periodos de actuación). La
siguiente línea indica quién es el servidor primario (NS = Name Server). Las
siguientes líneas especifican las IP de los diferentes PC componentes del
dominio (A = Address). En la siguiente imagen puedes ver cómo quedaría el
fichero.
7.
Seguidamente editaremos el
archivo /etc/bind/db.192.168.83.rev. Este archivo contiene
las tablas de búsqueda inversa. Así quedaría el fichero.
8.
Ya casi hemos acabado. Una vez
configurado nuestro servidor DNS, debemos indicar a nuestro PC que el servidor
DNS es él mismo, se especifica editando el archivo /etc./resolv.conf.
Indicando la @ip del servidor y el dominio de donde realizará las búsquedas.
9.
Nuestro servidor DNS ya está
funcionando, para comprobar que lo hace correctamente, realizaremos alguna
comprobación con el comando nslookup. Con este comando podremos comprobar que
resuelve peticiones de la zona directa.
INSTALLATION.
1. The first thing I will do is look at how I have configured or configured the network card (s) on my server with the ifconfig command
2. The first thing we will do is assign a static IP to the network card that will service our network. We will do it by editing the file /etc./network/inerfaces.
3. Next, we restart the network with the command /etc./init. d / networking restart and we will verify that the network configuration is correct with the ifconfig command that we already used before.
4. Once installed, we can now go to the DNS server configuration. All the files we need to edit are in the / etc / bind / directory. There we will find among others the files named.conf.options and /etc/bind/named.conf.local that will be the first ones we will edit.
Edit the file /etc/bind/named.conf.options
The first file we will edit will be the file /etc/bind/named.conf.options. In this file we only have to discontent the lines of forward only and forwarders as you can see in the image below and add the ip of external DNS servers where you will consult our service in case you do not find the answer to our request.
5. Then we will edit the file /etc/bind/named.conf.local. In this file we will specify the direct and reverse search zones of the DNS service. The domain of our direct zone and the subnet of the reverse zone. We will also have to include what type of service it is (master or slave) and in which files it will search for names.
6. The next file to edit is the one that will contain the direct search tables /etc/bind/db.webebre.net.host. This file contains the direct search tables. The first lines are parameters related to the DNS update (serial number and performance periods). The next line indicates who the primary server is (NS = Name Server). The following lines specify the IPs of the different PC components of the domain (A = Address). In the following image you can see how the file would look.
7. Next we will edit the file /etc/bind/db.192.168.83.rev. This file contains the reverse search tables. This would be the file.
8. We're almost done. Once our DNS server is configured, we must indicate to our PC that the DNS server is itself, it is specified by editing the file /etc./resolv.conf. Indicating the server's @ip and the domain from where it will perform the searches.
9. Our DNS server is already working, to verify that it is doing it correctly, we will perform some check with the nslookup command. With this command we can verify that it resolves requests from the direct zone.
VIDEOTUTORIAL.
No hay comentarios.:
Publicar un comentario