Editamos el fichero /etc/bind/named.conf y añadimos la zonas de resolución directa "esi.es" e inversa "4.168.192.in-addr.arpa"
Supondremos que nuestro servidor tiene la 192.168.4.2 y aloja el nombre "esi.es"
[root@morgado-laptop]$ gedit /etc/bind/named.conf
...
include "/etc/bind/named.conf.options";
// 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";
};
# zone de resolución directa "esi.es"
zone "esi.es" {
type master;
file "/etc/bind/db.esi.es";
};
# zone de resolución inversa "4.168.192.in-addr.arpa"
zone "4.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.4.168.192";
};
|
Editamos el fichero de la zona para la resolución directa
[root@morgado-laptop]$ gedit /etc/bind/db.esi.es
$TTL 604800
@ IN SOA esi.es. root.esi.es. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS profesor
192.168.4.2 IN A profesor
192.168.4.3 IN A alumno1
192.168.4.10 IN A www
ftp IN CNAME www
|
Editamos el fichero de la zona para la resolución inversa
[root@morgado-laptop]$ gedit /etc/bind/db.4.168.192
$TTL 604800
@ IN SOA esi.es. root.esi.es. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS profesor.
2 IN PTR profesor.
3 IN PTR alumno1.
10 IN PTR www.
|