Centos绑定服务器configuration与胶水logging

我在CentOS上遇到dns服务器问题。 我有域名cloudauth.me,我从godaddy.com买了它。

我给这个域添加了胶水logging。 我使用ns1.cloudauth.me和ns2.cloudauth.meconfiguration了名称服务器。 而这个子域的IP地址是我在godaddyconfiguration的199.175.53.128。 199.175.53.128是我的VPS的IP。

现在我想在CentOS上configurationdns服务器。

我的configuration是这个/etc/named.conf

 // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 127.0.0.1;199.175.53.128; }; 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 { localhost; }; recursion yes; allow-recursion {127.0.0.1; 199.175.53.128;}; query-source address * port 53; 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"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; zone "cloudauth.me" { type master; file "/var/named/cloudauth.me.hosts"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; 

而域的区域文件是这样的。 /var/named/cloudauth.me.hosts

 $ttl 38400 @ IN SOA ns1.cloudauth.me. ns2.cloudauth.me. ( 100 ; serial 1H ; refresh 1M ; retry 1W ; expiry 1D) ; minimum cloudauth.me. 86400 IN A 199.175.53.128 cloudauth.me. 86400 IN NS ns1.cloudauth.me. cloudauth.me. 86400 IN NS ns2.cloudauth.me. ns1 86400 IN A 199.175.53.128 ns2 86400 IN A 199.175.53.128 www 86400 IN A 199.175.53.128 

问题是域cloudauth.me不工作。 我检查了很多nslookup服务器。 我的域名无法parsing。 我的configuration有什么问题?

我发现问题。 问题在这一行

 allow-query { localhost; }; 

为了远程访问绑定服务器,这条线必须处于hibernate状态

 allow-query { any; }; 

这个replace解决了这个问题