sudo apt install bind9 bind9-utils
sudo ufw status
DESACTIVA EL FIREWAR
sudo nano /etc/bind/named.conf.options
listen-on { any; };
allow-query { localhost; 192.168.2.0/24; };
sudo named-checkconfsudo systemctl restart bind9sudo systemctl status bind9
agregar zonas
sudo nano /etc/bind/named.conf.local
zone "diazmongesonalo.com." IN {
type master;
file "/etc/bind/zonas/db.diazmongesolano.com";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zonas/db.2.168.192";
};
sudo cp /etc/bind/db.local /etc/bind/zonas/db.diazmongesolano.com
<sudo cp /etc/bind/db.local /etc/bind/zonas/db.amsskd.com>
sudo nano /etc/bind/zonas/db.diazmongesolano.com
<sudo nano /etc/bind/zonas/db.amsskd.com>
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA diazmongesolano.com. root.diazmongesolano.com. (
<@ IN SOA amsskd.com. root.amsskd.com. (>
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS diazmongesolano.com.local.
<IN NS amsskd.com.>
servidor IN A 192.168.2.128
equipo IN A 192.168.2.135
server IN CNAME servidor
sudo cp /etc/bind/zonas/db.diazmongesolano.com /etc/bind/zonas/db.2.168.192
<sudo cp /etc/bind/zonas/db. amsskd.com /etc/bind/zonas/db.2.168.192>
cd /etc/bind/zonas/
ls
sudo nano /etc/bind/zonas/db.2.168.192
$TTL 1d ;
@ IN SOA ns1.diazmongesolano.com. admin.diazmongesolano.com. (
20210222 ; Serial
12h ; Refresh
15m ; Retry
3w ; Expire
2h ) ; Negative Cache TTL
;
IN NS diazmongesolano.com.local.
128 IN PTR servidor.diazmongesolano.com.local.
<$TTL 1d ;
@ IN SOA ns1.amsskd.com. admin.amsskd.com. (
20210222 ; Serial
12h ; Refresh
15m ; Retry
3w ; Expire
2h ) ; Negative Cache TTL
;
IN NS amsskd.com.local.
128 IN PTR servidor.amsskd.com.local.>
sudo named-checkconf /etc/bind/named.conf.local
sudo nano /etc/bind/named.conf.local
zone "diazmongesonalo.com" IN {
type master;
file "/etc/bind/zonas/db.diazmongesolano.com";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zonas/db.2.168.192";
};
Q
sudo named-checkzone diazmongesolano.com /etc/bind/zonas/db.diazmongesolano.com
<sudo named-checkzone amsskd.com /etc/bind/zonas/db.amsskd.com>
sudo named-checkzone 2.168.192.in-addr.arpa /etc/bind/zonas/db.2.168.192
No hay comentarios.:
Publicar un comentario