nano /etc/named.conf
کد :
include "/etc/rndc.key";
controls { inet 127.0.0.1 port 953 allow { localhost; none; } keys { rndc-key; }; };
acl clients { 80.191.222.0/24; 192.168.35.0/24; };
options {
listen-on port 53 { 127.0.0.1; 192.168.35.1; 80.191.222.1; };
listen-on-v6 port 53 { none; };
directory "/var/named";
forward only ;
forwarders { 8.8.4.4; 4.2.2.5; } ;
max-cache-size 2097152 ;
allow-query { localhost; clients; none; };
allow-recursion { localhost; clients; none; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};