我在/etc/named.conf中有此文件,我注释了默认值并在其下设置了自己的默认值。除非将allow-query设置为“ any”,否则我的域不会加载到浏览器中,这样可以,我应该编辑什么?如果是localhost
或127.0.0.1; 10.0.1.0/24;
域将不会加载。我尝试了127 ..事情,因为它在这里提到了它:http : //wiki.mandriva.com/en/Testing : Bind
绑定版本是9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 OS是CentOS 6.0。
options {
// listen-on port 53 { 127.0.0.1; };
listen-on port 53 { any; };
//listen-on-v6 port 53 { ::1; };
listen-on-v6 port 53 { any; };
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 { localhost; };
allow-query { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};