阿里云搭建bind服务,外网ip不能用来解析问题解决

时间:2021-10-30 20:19:53
options {
listen-on port 53 { any; }; //端口开放any
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
forward first; //配置转发,到114.114.114.114
forwarders {114.114.114.114;};
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto; /* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic";
}; zone "." IN {
type hint;
file "named.ca";
}; zone "localhost" IN {
type master;
file "localhost.zone";
}; zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};