名称服务器设置绑定

名称服务器设置绑定

我已经按照如下方式设置了域名和名称服务器,但是当我挖掘域名时,它不起作用。

设置如下:我想要一个名为 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-地址.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-地址.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

命名的.conf.本地

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返回 A 记录(以及所有其他正确信息),就像对 dig ns1.iheartlotto.com 所做的那样?

答案1

您的前进区域中 iheartlotto.com 之后没有句号:

 iheartlotto.com.            IN A 148.251.181.168

相关内容