【问题标题】:bind9 answering SERVFAILbind9 回答 SERVFAIL
【发布时间】:2012-02-07 23:55:10
【问题描述】:

我刚刚设置了我的 debian squeeze 服务器。但现在我遇到了一个小问题,我无法通过我的域(在本例中为 example.com)访问我的服务器。

我还使用 namecheap 注册了一个名称服务器,它“连接”到我的服务器 ip。

这是我的 bind9 named.conf

zone "." {
        type hint;
        file "/etc/bind/db.root";
};

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

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

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

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

options {
    directory "/var/named";
};

zone "example.com" {
    type master;
    file "e/example.com";
};

这是位于“/var/named/e/”中的相应区域文件

$TTL 2H
@       IN      SOA     ns1.example.tld. hostmaster.example.tld. (
                        1328627781                      ; serial
                        8H                              ; refresh
                        2H                              ; retry
                        4W                              ; expire
                        2H )                            ; minimum TTL

                NS      ns1.example.tld.                 ; name server
                NS      ns2.example.tld.                 ; name server
                MX      10 mail.example.org.             ; mail exchanger
                A       MY_SERVER_IP_ADDRESS
*               A       MY_SERVER_IP_ADDRESS
mail            A       MY_SERVER_IP_ADDRESS
www             A       MY_SERVER_IP_ADDRESS

如果我执行 nslookup

nslookup stackoverflow.com 8.8.8.8
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
Name:   stackoverflow.com
Address: 64.34.119.12

当然,一切都正确显示。

现在是我的 example.com 域

nslookup example.com 8.8.8.8
Server:         8.8.8.8
Address:        8.8.8.8#53

** server can't find example.com: SERVFAIL

有人可以帮我吗?因为我不知道我应该从哪里开始找到问题。

非常感谢您

【问题讨论】:

    标签: dns debian nameservers


    【解决方案1】:

    当您从 8.8.8.8 名称服务器询问 stackoverflow.com 时,它会递归询问有关此域的信息。这意味着,首先它会转到其中一个根服务器,询问“.com”名称服务器,然后转到其中一个,询问“stackoverflow.com”信息。

    如果您得到这个答案(找不到 example.com),这可能意味着您没有在域名注册商处注册您的域名。

    【讨论】:

      【解决方案2】:

      您不应该忘记 ns A 或 AAAA 记录。这是胶水记录。

      https://www.cloudaccess.net/cloud-control-panel-ccp/157-dns-management/318-glue-records.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-04-16
        • 2016-07-01
        • 2012-08-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多