我自己的名称服务器不会parsing域

我想要做的是使我自己的域名服务器解决我的域名。

我有3个VPS,所有运行的debian和一个域名mydomain.com

2个VPS是域名服务器,1个是Web服务器。

在我的注册商,我把我的域名只有DNS,并将名称服务器更改为我自己的两个域名服务器。

在我的第一个名称服务器上,我已经安装了Bind9,并且configuration如下。

named.conf.local

zone"mydomain.com" { type master; file "/etc/bind/zones/mydomain.com.zone"; }; zone "xxxxin-addr.arpa" { type master; file "/etc/bind/zones/rev.xxxxin-addr.arpa"; }; 

/etc/bind/zones/mydomain.com.zone

 mydomain.com. IN SOA ns3.mydomain.com. admin.mydomain.com. ( 2006071801 28800 3600 604800 38400) mydomain.com. IN NS ns3.mydomain.com. mydomain.com. IN NS ns4.mydomain.com. www IN A 1.2.3.4 //my third VPS which is a webserver ns3 IN A xxxx //this nameserver ip, should it be localhost? ns4 IN A xxxx //my 2nd VPS nameserver ip @ IN A 1.2.3.4 

/etc/bind/zones/rev.xxxxin-addr.arpa

 @ IN SOA ns3.mydomain.com. admin.mydomain.com. ( 2006071801; 28800; 604800; 604800; 86400); IN NS ns3.mydomain.com. 2 IN PTR mydomain.com 

当我运行nslookup www.mydomain.com响应是

 Server: xxxx //which points to the neighbourhood of my VPS provider Address: xxxx#53 Non-authoritative answer: Name: www.mydomain.com Address: xxxx //this is the actual ip of my VPS webserver 

所以它似乎在工作? 我不能通过我的网页浏览器解决,我只是在等待传播,或者是有什么遗漏吗?

提前感谢任何帮助或有见地的build议。

http://ip.seveas.net/dnsgraph/png/www.epnddns.com/?skip_.=on&show_A=Show

http://ip.seveas.net/dnsgraph/png/epnddns.com/?skip_.=on&show_A=Show

所以ns3工作正常,但ns4没有响应。 您也忘记为该域添加Alogging。 就像是:

 @ IN A xxxx //my third VPS which is a webserver 

@表示:域,而不是它的子域。

此外,有关testingDNS区域的在线工具列表,请参阅http://www.bortzmeyer.org/tests-dns.html