DNS解析问题;挖掘 SERVFAIL 错误
DNS resolution problems; dig SERVFAIL error
我正在设置一台专用服务器进行托管。并尝试设置私人 DNS 和名称服务器。从一天开始尝试,我无法弄清楚这个问题。
我在 windows 8.
中使用 BIND9 DNS 服务器
所以,我在正确设置 DNS 时遇到了问题。我有两个域,每个域都指向其中一台服务器。名称服务器已在域注册商处正确注册,名称服务器 IP 也已正确输入。我已经与注册服务商的技术支持人员进行了交谈,他们确认一切都已在他们这边进行了设置。不太了解 DNS,我用 google 搜索了域名服务器和 DNS,直到我几乎失明,并花了几个小时搞乱配置。
named 运行良好,但没有解决任何问题。当我 "dig any example.com" 收到 SERVFAIL 消息时。
named.conf
options {
directory "C:\BIND\etc";
version "not currently available";
pid-file "run\named.pid";
allow-transfer { none; };
recursion no;
};
logging{
channel my_log{
file "log\named.log" versions 3 size 250k;
severity info;
};
category default{
my_log;
};
};
zone "example.com" IN {
type master;
file "zones\db.example.com.txt";
allow-transfer { any; };
};
key "rndc-key" {
algorithm hmac-md5;
secret "B5jGB5sU7e35WzXoam/EcA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
db.example.com
$TTL 6h
@ IN SOA ns1.example.com.
hostmaster.example.com. (
2015062801
10800
3600
604800
86400 )
@ NS ns1.example.com.
@ NS ns2.example.com.
ns1 IN A 1.2.3.4
ns2 IN A 1.2.3.4
www IN A 1.2.3.4
named.log
dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running client 1.2.3.4#51108: query (cache) './NS/IN' denied shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running invalid command from 127.0.0.1#50166: bad auth shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running client 134.147.203.115#28207: query (cache) 'psge.53dca67a.wc.syssec.rub.de/A/IN' denied
这里的1.2.3.4指的是我的public静态IP。我是 dns 的新手。任何帮助都会很棒。
所以,总结一下:
•具有 IP 的名称服务器已在域名注册商处正确注册
•named 已配置且 运行 ...并且不得配置
•正确,因为没有解决任何问题。
任何帮助都会很棒。我将文件中的域和 IP 更改为泛型,但如果您需要了解相关域,请告诉我。
您的日志显示错误:
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
它似乎不喜欢您的 SOA。您可以尝试将 hostmaster 记录移动到与您的 ORIGIN 和 NX TTL
之后的最后一个括号相同的行
编辑:
@ IN SOA ns1.example.com. hostmaster.example.com. (
2015062801
10800
3600
604800
86400
)
我正在设置一台专用服务器进行托管。并尝试设置私人 DNS 和名称服务器。从一天开始尝试,我无法弄清楚这个问题。
我在 windows 8.
中使用 BIND9 DNS 服务器所以,我在正确设置 DNS 时遇到了问题。我有两个域,每个域都指向其中一台服务器。名称服务器已在域注册商处正确注册,名称服务器 IP 也已正确输入。我已经与注册服务商的技术支持人员进行了交谈,他们确认一切都已在他们这边进行了设置。不太了解 DNS,我用 google 搜索了域名服务器和 DNS,直到我几乎失明,并花了几个小时搞乱配置。
named 运行良好,但没有解决任何问题。当我 "dig any example.com" 收到 SERVFAIL 消息时。
named.conf
options {
directory "C:\BIND\etc";
version "not currently available";
pid-file "run\named.pid";
allow-transfer { none; };
recursion no;
};
logging{
channel my_log{
file "log\named.log" versions 3 size 250k;
severity info;
};
category default{
my_log;
};
};
zone "example.com" IN {
type master;
file "zones\db.example.com.txt";
allow-transfer { any; };
};
key "rndc-key" {
algorithm hmac-md5;
secret "B5jGB5sU7e35WzXoam/EcA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
db.example.com
$TTL 6h
@ IN SOA ns1.example.com.
hostmaster.example.com. (
2015062801
10800
3600
604800
86400 )
@ NS ns1.example.com.
@ NS ns2.example.com.
ns1 IN A 1.2.3.4
ns2 IN A 1.2.3.4
www IN A 1.2.3.4
named.log
dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running client 1.2.3.4#51108: query (cache) './NS/IN' denied shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running invalid command from 127.0.0.1#50166: bad auth shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running client 134.147.203.115#28207: query (cache) 'psge.53dca67a.wc.syssec.rub.de/A/IN' denied
这里的1.2.3.4指的是我的public静态IP。我是 dns 的新手。任何帮助都会很棒。
所以,总结一下: •具有 IP 的名称服务器已在域名注册商处正确注册 •named 已配置且 运行 ...并且不得配置 •正确,因为没有解决任何问题。
任何帮助都会很棒。我将文件中的域和 IP 更改为泛型,但如果您需要了解相关域,请告诉我。
您的日志显示错误:
127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on 127.0.0.1#953 no longer listening on 127.0.0.1#53 no longer listening on 192.168.1.3#53 exiting dns_rdata_fromtext: zones\db.example.com.txt:2: near eol: unexpected end of input zone example.com/IN: loading from master file zones\db.example.com.txt failed: unexpected end of input running shutting down: flushing changes stopping command channel on
它似乎不喜欢您的 SOA。您可以尝试将 hostmaster 记录移动到与您的 ORIGIN 和 NX TTL
之后的最后一个括号相同的行编辑:
@ IN SOA ns1.example.com. hostmaster.example.com. (
2015062801
10800
3600
604800
86400
)