我正在設置一個專用服務器託管。並試圖設置私人DNS和域名服務器。試圖從一天,我無法找出問題。DNS解析問題;挖SERVFAIL錯誤
我使用Windows 8
所以,我有問題,得到正確設置DNS BIND9 DNS服務器。我有兩個域,每個域都指向這些服務器之一。名稱服務器在域名註冊機構中正確註冊,名稱服務器IP也正確輸入。我已經在註冊服務機構向技術支持部門發表過演講,他們確認所有內容都已設置完畢。對DNS不太瞭解,我搜索了域名服務器和DNS,直到我幾乎失明,並花費了幾個小時來搞亂配置。
命名運行就好,但沒有任何解決。當我「挖掘任何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是指我的公開靜態IP地址。我是新來的dns。任何幫助都會很棒。
因此,簡言之: •域名服務器,採用IPS,正確與域名註冊商 •命名的配置和運行註冊...並不能正確配置 •,因爲沒有解決。
任何幫助將是偉大的。我將文件中的域名和IP更改爲泛型,但如果您需要了解相關域名,請告訴我。
我沒有收到。你能爲我編輯和粘貼嗎?這會很棒。 –
感謝它的工作。但我改變了towindows服務器操作系統,讓事情變得更簡單。 –
隨時點擊答案按鈕,如果它幫助...但是,我可以向你保證,將DNS移動到Windows不*使*更容易=) –