我對綁定/ DNS區域相對較新,但最近一直在閱讀很多內容,並通過鏈接檢查DNS。我跑了支票,可以看到通過:http://intodns.com/empireconqueror.com綁定區域良好做法
問題是似乎有很多問題仍然錯誤的區域,似乎沒有關於在互聯網上的這些錯誤的信息,所以我來這裏尋求幫助。
我的選項如下:
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 {
// 199.115.230.239;
//};
allow-query {
any;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
allow-recursion { localhost; };
};
而對於實際的區域選擇:
include "/etc/bind/named.conf.options";
view "external-in" in {
match-clients { any; };
allow-query { none; };
allow-query-cache { none; };
recursion no;
additional-from-auth yes;
additional-from-cache yes;
include "/etc/bind/named.conf.default-zones";
};
這裏的主區域例如:
zone "empireconqueror.com" {
type master;
file "/ect/bind/db.empireconqueror.com";
};
數據庫文件:
$TTL 86400
$ORIGIN empireconqueror.com.
@ IN SOA ns2.webserverhome.com. hostmaster.empireconqueror.com. (
2002022401
28800
7200
864000
86400
)
; Root site
IN A 199.115.230.240
; Nameservers
IN NS ns1.webserverhome.com.
IN NS ns2.webserverhome.com.
; Aliases
www IN CNAME empireconqueror.com.
fb IN CNAME empireconqueror.com.
mail IN CNAME ghs.google.com.
; MX Records
IN MX 1 aspmx.l.google.com.
IN MX 5 alt1.aspmx.l.google.com.
IN MX 5 alt2.aspmx.l.google.com.
IN MX 10 aspmx2.googlemail.com.
IN MX 10 aspmx3.googlemail.com.
非常感謝你的幫忙, 肖恩
問題是,ns1.webserverhome.com和n2.webserverhome.com似乎並不存在於區域文件或答案中。您需要先解決該問題。如果您還擁有webserverhome.com,則需要到註冊服務商並添加DNS粘合記錄或基於webserverhome.com構建NS)。沒有它們,你不能引用其他區域的名稱服務器。 – Doon 2011-05-30 13:54:15
Hello Doon,我也擁有webserverhome.com域,並將ns1和ns2的A記錄粘貼到相關IP的記錄中。 – shauny 2011-05-30 15:04:05
現在好了ns [12] .webserverhome.com解決。但在看empireconqueror.com時,它指向ns [12] .svnr.net。 – Doon 2011-05-30 23:20:24