Bind9配置

时间:2011-12-11 00:29:59

标签: dns

我无法理解为什么我的DNS服务器无法正常工作。 当我用“挖掘”进行测试时,我明白这一点

; <<>> DiG 9.7.3 <<>> connectioon.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54973
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;connectioon.eu.            IN  A

;; Query time: 0 msec
;; SERVER: 192.168.1.33#53(192.168.1.33)
;; WHEN: Fri Dec  9 20:14:07 2011
;; MSG SIZE  rcvd: 32

named.conf.local:

zone "connectioon.eu" {
    type master;
        file "/etc/bind/zones/connectioon.eu";
};

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





I have tried with:

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

and

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

connectioon.eu conf文件:

; BIND data file for local loopback interface
;
$TTL    604800
@   IN  SOA    connectioon.eu. voice12345678910.hotmail.com. (
         09122011180545     ; Serial
                       604800   ; Refresh
                         86400  ; Retry
                    2419200 ; Expire
                     604800 )   ; Negative Cache TTL
;
@   IN  NS  connectioon.eu.
@   IN  91.100.21.28

the 192.168.1 file:
;
; BIND data file for local loopback interface
;
$TTL    604800
@   IN  SOA     connectioon.eu. voice12345678910.hotmail.com. (
         09122011184553     ; Serial
                       604800   ; Refresh
                         86400  ; Retry
                    2419200 ; Expire
                    604800 )    ; Negative Cache TTL
;
    NS  connectioon.eu.
28  PTR connectioon.eu.

我的公共IP是: 91.100.21.28 和本地IP到dns: 192.168.1.33

PS。我在ubuntu 11.04上使用bind9

1 个答案:

答案 0 :(得分:0)

此命令:

dig connectioon.eu @91.100.21.28

显示

; <<>> DiG 9.7.3 <<>> connectioon.eu @91.100.21.28
;; global options: +cmd
;; connection timed out; no servers could be reached

您确定名称服务器正在侦听端口53(并且不限于本地请求)吗? 我假设你的DNS服务器就是91.100.21.28。

(编辑:实际上,快速dig connectioon.eu +norecurse @x.nic.eu显示主NS为91.100.21.28.hostname-generic.arrownet.dk,解析为91.100.21.28)

PS:ziesemer的服务器故障相关评论+1;