View RSS Feed

Peyman Yousefi

Bind DNS Forwarding & Caching

امتیاز
توسط - 2012-07-31 - 05:23 PM (بازدید: 2701)
  
nano /etc/named.conf
کد:
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; };
};
f14f21 سپاسگزاری کرده است.
دسته ها
Linux

نظر