PDA

View Full Version : آموزش: Bind DNS Forwarding & Caching



darklove
سه شنبه 10 مرداد 1391, 18:15 عصر
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; };
};