我正在尝试使用我拥有的域设置我的 BIND,并且我正在使用 dnssy.com 和 intodns.com 来检查一切是否正常,但是我在两者中都遇到了错误。错误说我的 DNS 服务器是“蹩脚的”(我不明白这是什么意思)。
我的named.conf
options {
directory "/var/dns";
pid-file "/var/run/named/named.pid";
auth-nxdomain yes;
datasize default;
listen-on-v6 { any; };
listen-on { 127.0.0.1; 188.165.234.51; };
listen-on-v6 { ::1; };
allow-recursion { 127.0.0.1; };
allow-transfer { none; };
allow-update { none; };
allow-query { any; };
allow-query-cache { any; };
version none;
hostname none;
server-id none;
};
include "/var/dns/autogen-zones";
Run Code Online (Sandbox Code Playgroud)
autogen-zones 是一个自动生成的文件,其中包含以下内容:
zone "localhost" IN {
type master;
file "localhost.zone";
allow-transfer { any; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
allow-transfer { any; };
};
zone "." IN {
type hint;
file "root.hint";
};
zone "destinosxures.com" IN {
type master;
file "destinosxures.com.zone";
allow-query { any; };
allow-transfer { any; };
};
Run Code Online (Sandbox Code Playgroud)
最后,我的 destinosxures 区:
$TTL 604800
@ IN SOA ns367310.ovh.net. hostmaster.destinoxures.com. (
2012030503 ; Serial yyyy/mm/dd/id
10800 ; Refresh
3600 ; Retry
604800 ; Expire
10800 ) ; Negative Cache TTL
@ IN NS ns367310.ovh.net.
@ IN NS sdns2.ovh.net.
ns1 IN A 188.165.234.51
ns2 IN A 188.165.234.51
@ IN A 188.165.234.51
www IN A 188.165.234.51
http.tcp SRV 0 3 80 destinoxures.com.
https.tcp SRV 1 0 443 destinoxures.com.
Run Code Online (Sandbox Code Playgroud)
哦,顺便说一下,我的 resolv.conf 有:
nameserver 127.0.0.1
nameserver 213.251.188.141
Run Code Online (Sandbox Code Playgroud)
我的配置有什么问题?
问候
您的 named.conf 列出了区域,destinosxures.com而区域文件本身仅指代destinoxures.com(注意缺少中央“s”)。如果这反映了您服务器上的真实情况,那么这绝对是一个问题。
顺便说一句,感谢您没有掩盖问题中的域名;如果你有,我们可能永远找不到答案。其他发布问题的人,尤其是 DNS 问题,请注意。