名称服务器设置绑定

我已经build立了一个域名和域名服务器,但是当我挖掘域名,这是行不通的。

设置如下:我想要一个名为iheartlotto.com的域,名称服务器是ns1.iheartlotto.com和ns2.iheartlotto.com。

iheartlotto.com是为了在148.251.181.168上ns1.iheartlotto.com是在148.251.197.217上ns2.iheartlotto.com是在148.251.197.218上

当我dig ns1.iheartlotto.com ,它工作正常,我作为输出的一部分:

 ;; ANSWER SECTION: ns1.iheartlotto.com. 86400 IN A 148.251.197.217 

以上是正确的。

但是,当我dig iheartlotto.com返回下面。 请注意,IN A是空白的。

 ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> iheartlotto.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20497 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;iheartlotto.com. IN A ;; AUTHORITY SECTION: iheartlotto.com. 10800 IN SOA iheartlotto.com. hostmaster.iheartlotto.com. 2014101004 10800 3600 604800 10800 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Oct 10 21:26:53 2014 ;; MSG SIZE rcvd: 80 

我有的实际文件是:

181.251.148.in-addr.arpa

 $TTL 86400 @ IN SOA iheartlotto.com. hostmaster.iheartlotto.com. ( 2014101000 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 10800 ) ; Minimum IN NS iheartlotto.com. 168 IN PTR iheartlotto.com. 

197.251.148.in-addr.arpa

 $TTL 86400 @ IN SOA iheartlotto.com. hostmaster.iheartlotto.com. ( 2014101002 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 10800 ) ; Minimum IN NS iheartlotto.com. 217 IN PTR ns1.iheartlotto.com. 218 IN PTR ns2.iheartlotto.com. 

iheartlotto.com.db

 $TTL 86400 @ IN SOA iheartlotto.com. hostmaster.iheartlotto.com. ( 2014101004 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 10800 ) ; Minimum iheartlotto.com. IN NS ns1.iheartlotto.com. iheartlotto.com. IN NS ns2.iheartlotto.com. ns1.iheartlotto.com. IN A 148.251.197.217 ns2.iheartlotto.com. IN A 148.251.197.218 iheartlotto.com IN A 148.251.181.168 

named.conf.local

 include "/etc/bind/zones.rfc1918"; zone "181.251.148.in-addr.arpa" { type master; file "/etc/bind/181.251.148.in-addr.arpa"; }; zone "197.251.148.in-addr.arpa" { type master; file "/etc/bind/197.251.148.in-addr.arpa"; }; zone "iheartlotto.com" { type master; file "/etc/bind/iheartlotto.com.db"; }; 

如何挖掘iheartlotto.com返回一个logging(连同所有其他正确的信息),就像它为挖掘ns1.iheartlotto.com?

iheartlotto.com在您的转发区域中没有PERIOD:

  iheartlotto.com. IN A 148.251.181.168