Dns bind9应答失败

Dns bind9应答失败,dns,debian,nameservers,Dns,Debian,Nameservers,我刚刚设置了我的debian Squence服务器。但现在我遇到了一个小问题,我无法通过我的域(在本例中是example.com)访问我的服务器 我还注册了一个名为namesheap的名称服务器,它“连接”到我的服务器ip 这是我的bind9名为.conf zone "." { type hint; file "/etc/bind/db.root"; }; zone "localhost" { type master; file

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

我还注册了一个名为namesheap的名称服务器,它“连接”到我的服务器ip

这是我的bind9名为.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/”中

如果我执行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
有人能帮我吗?因为我不知道从哪里开始发现问题


非常感谢您

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


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

您不应该忘记ns a或AAAA记录。这是胶粘唱片

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