Menú
editar el /etc/named.conf
en el apartado options comentar
#listen-on port 53 { 127.0.0.1; };
#listen-on-v6 port 53 { ::1; };
allow-query { localhost; 192.168.1.8/26; };
agregar
zone "squid.local" {
type master;
file "/etc/named/db.squid.local";
allow-update {none;};
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/named/db.192";
allow-update { none; };
};
crear el archivo /etc/named/db.squid.local
;
; BIND data file for example.com
;
$TTL 604800
@ IN SOA squid.local. root.squid.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN A 192.168.1.8
;
@ IN NS ns.squid.local.
@ IN A 192.168.1.8
@ IN AAAA ::1
ns IN A 192.168.1.8
crear el archivo
;
; BIND reverse data file for local 192.168.1.XXX net
;
$TTL 604800
@ IN SOA ns.squid.local. root.squid.local. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
10 IN PTR ns.squid.local.
chmod 777 /etc/named/db.squid.local
chmod 777 /etc/named/db.192
firewall-cmd --add-service=dns --permanent
firewall-cmd --reload
systemctl restart named