我的绑定区有什么问题?

我试图build立我自己的绑定服务器swic.me,但我不能让它响应该域名! 要求google.com等其他域的作品,所以基本的configuration应该没问题。

这是我的named.conf.local

zone "swic.me" { type master; file "/var/lib/bind/swic.me.hosts"; }; 

和我的/var/lib/bind/swic.me.hosts

 $ttl 38400 swic.me. IN SOA ns1.swic.me m.maciekish.com ( 1345843666 10800 3600 604800 38400 ) swic.me. IN NS ns1 swic.me. IN NS ns2 ns1 IN AAAA 2001:470:28:81:34:110 ns1 IN AAAA 2001:470:28:81:34:110 swic.me. IN AAAA 2001:470:28:81:34:110 swic.me. IN A 127.0.0.1 

询问NS返回以下内容

 ; <<>> DiG 9.8.1-P1 <<>> swic.me @localhost ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 13655 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;swic.me. IN NS ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sat Aug 25 00:09:42 2012 ;; MSG SIZE rcvd: 25 

我认为configuration是好的,因为服务bind9重新启动没有错误,并说[确定]

注:我知道指向本地主机的Alogging,这个域将仅用于ipv6testing,这是预期的configuration!

您缺less域名的DNS粘贴logging。

由于您使用的是GoDaddy,您可以在GoDaddy控制面板中进行设置。 在点击你的域和“启动”之后,在左下angular看这个,并在那里添加ns1和ns2的logging。

在这里输入图像说明

您应该将相同的地址logging也放在绑定区域文件中。

这是问题:

 ns1 IN AAAA 2001:470:28:81:34:110 ns1 IN AAAA 2001:470:28:81:34:110 

应该

 ns1 IN AAAA 2001:470:28:81:34:110 ns2 IN AAAA 2001:470:28:81:34:110