最近更改了绑定文件,添加了一些带有字符“#”的注释,我猜这是错误的,因为我的网站无法访问。
所以我把它改回来,增加序列号,但由于错误,我把它增加到了 32 而不是 31,但这不应该造成任何问题。已经两个小时了,它仍然不起作用。
我是不是漏掉了什么?我开始有点担心了 :(
附言:当然我每次都会重新加载绑定服务器。
编辑:我也错误地执行了命令 bind -v,我不知道它的效果。
编辑:我的前任没有配置绑定日志文件,所以我尝试了一下,我的named.conf.options文件是:
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
listen-on { any; };
allow-recursion { 127.0.0.1; 213.186.33.199; };
allow-query-cache { 127.0.0.1; 213.186.33.199; };
additional-from-cache no;
};
logging {
channel default_log {
file "/var/log/bind/error.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
default_log;
};
};
但我的日志是空的...
编辑:这是我的 db.domain.com 文件:
$TTL 3600
domain.com. IN SOA serverid.kimsufi.com. [email protected]. (
2013090101 ; Serial
1200 ; Refresh
180 ; Retry
2419200 ; Expire
3600 ) ; Negative caching TTL
;
;NAMESERVERS
;
IN NS serverid.kimsufi.com.
IN NS ns.kimsufi.com.
;
;Nodes in domain
;
imap IN A IPSERVER
domain.com. IN MX 10 mail.domain.com.
domain.com. IN A 94.23.52.112
mail IN A IPSERVER
mysql IN A IPSERVER
pop IN A IPSERVER
pop3 IN A IPSERVER
smtp IN A IPSERVER
sql IN A IPSERVER
www IN A IPSERVER
;
;Subdomains
;
subdomain1 IN A IPSERVER
...
subdomain12 IN A IPSERVER
;*.domain.com. IN A IPSERVER
答案1
好吧,我仍然不明白问题所在,但是我更改了我的 db.domaine.com 文件的名称,创建了一个新文件,将内容粘贴到其中,然后它又开始滚动了!