options {
listen-on port 53 { any; };
directory "/var/named";
};
logging {
channel default_debug {
file "data/named.run";
print-time yes;
severity dynamic;
};
channel query_log {
file "data/query.log" versions 3 size 20m;
severity info;
print-time yes;
print-category yes;
};
category queries {
query_log;
};
};
acl clients{
192.168.1.0/24;
};
view localhost {
match-clients { localhost; };
allow-query { localhost; };
allow-query-cache { localhost; };
recursion yes;
};
view clients {
match-clients { clients; };
allow-query { clients; };
allow-query-cache { clients; };
zone "." {
type forward;
forwarders { 127.0.0.1 port 54;};
forward only;
};
};
view external
{
match-clients { any; };
allow-query { any; };
allow-query-cache { any; };
recursion no;
allow-transfer { none; };
zone "." {
type master;
file "root.zone";
};
};
标签:none