Bind9 NXDOMAIN本地,无法从客户端访问

时间:2013-12-05 20:22:52

标签: dns reverse-dns

我一直在尝试在Ubuntu VM上配置DNS服务器以及2台连接的计算机。一个是另一个ubuntu服务器,另一个是桌面。 DHCP为其他计算机提供DNS服务器,当在服务器上运行dig时,IP和服务器名称都响应DNS服务器正在运行。 当我在DNS服务器上运行dig时,我明白了。

root@ubuntu:/etc/bind/zones# dig lee75.com

; <<>> DiG 9.8.1-P1 <<>> lee75.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2282
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;lee75.com.                     IN      A

;; AUTHORITY SECTION:
com.                    600     IN      SOA     a.gtld-servers.net. nstld.verisign-grs.com. 1386274474 1800 900 604800 86400

;; Query time: 148 msec
;; SERVER: 142.55.100.25#53(142.55.100.25)
;; WHEN: Thu Dec  5 15:14:56 2013
;; MSG SIZE  rcvd: 100


   root@ubuntu:/etc/bind/zones# dig 172.16.18.1

; <<>> DiG 9.8.1-P1 <<>> 172.16.18.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 51857
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;172.16.18.1.                   IN      A

;; AUTHORITY SECTION:
.                       600     IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2013120501 1800 900 604800 86400

;; Query time: 17 msec
;; SERVER: 142.55.100.25#53(142.55.100.25)
;; WHEN: Thu Dec  5 15:15:22 2013
;; MSG SIZE  rcvd: 104

但每当我使用nslookup时,我都会得到这个。

root@ubuntu:/etc/bind/zones# nslookup lee75.com
Server:         142.55.100.25
Address:        142.55.100.25#53

** server can't find lee75.com: NXDOMAIN

root@ubuntu:/etc/bind/zones# nslookup 172.16.18.1
Server:         142.55.100.25
Address:        142.55.100.25#53

** server can't find 1.18.16.172.in-addr.arpa.: NXDOMAIN

据我所知,我的配置和区域文件也是正确的。

zone "lee75.com" {
        type master;
        file "/etc/bind/zones/lee75.com.db";
};

zone "rev.18.16.172.in-addr.arpa" {
        type master;
        file "/etc/bind/zones/rev.18.16.172.in-addr.arpa";
};

$TTL    86400
@       IN      SOA     srv1.lee75.com. admin.lee75.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
;
lee75.com.      IN      NS      srv1
srv1            IN      A       172.16.18.1
ns              IN      A       172.16.18.1
fileserver      IN      A       172.16.18.2
www             IN      CNAME   172.16.18.1


$TTL    86400
@       IN      SOA     srv1.lee75.com. admin.lee75.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
;
@       IN      NS      srv1.lee75.com.
1       IN      PTR     srv1.lee75.com.

HALP?

0 个答案:

没有答案