named.conf具体配置:
options {
directory “/var/cache/bind”;
server-id “SiyuanCache”;
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
allow-query { any; };
allow-recursion { any; };
allow-transfer { none; };
max-cache-size 64M;
max-cache-ttl 7200;
//min-cache-ttl 300;
forwarders {
180.76.76.76;
119.29.29.29;
223.5.5.5;
};
forward first;
dnssec-validation auto;
recursion yes;
edns-udp-size 4096;
minimal-responses yes;
};
本配置文件支持bind9.11下的缓存与自动解析,因最新版本是bind 9.16以上,因此走了很多弯路,经多次测试,终得这个支持在银河麒麟V11下的局域网DNS缓存。