bind9.50+mydns
我已經在 萬網上申請了合法DNS
ns1.edgora.cn 指向了 75.125.197.200
cat /usr/local/named/etc/named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "SNMYFWAAVeCB/udiejFdGw==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" IN {
type master;
file "localhost.rev";
};
zone "xueku.org.cn" IN {
type master;
database "mysqldb mydns china localhost root 123";
};
zone "xueku.net.cn" IN {
type master;
database "mysqldb mydns mydomain localhost root 123";
};
root@mydns:/usr/local/named/etc# ../sbin/named -g
29-Jun-2008 15:06:20.082 starting BIND 9.5.0 -g
29-Jun-2008 15:06:20.082 found 1 CPU, using 1 worker thread
29-Jun-2008 15:06:20.086 loading configuration from '/usr/local/named/etc/named.conf'
29-Jun-2008 15:06:20.087 listening on IPv4 interface lo, 127.0.0.1#53
29-Jun-2008 15:06:20.090 listening on IPv4 interface eth0, 75.125.197.200#53
29-Jun-2008 15:06:20.096 default max-cache-size (33554432) applies
29-Jun-2008 15:06:20.101 automatic empty zone: 0.IN-ADDR.ARPA
29-Jun-2008 15:06:20.101 automatic empty zone: 127.IN-ADDR.ARPA
29-Jun-2008 15:06:20.101 automatic empty zone: 254.169.IN-ADDR.ARPA
29-Jun-2008 15:06:20.101 automatic empty zone: 2.0.192.IN-ADDR.ARPA
29-Jun-2008 15:06:20.101 automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
29-Jun-2008 15:06:20.101 automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: D.F.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: 8.E.F.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: 9.E.F.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: A.E.F.IP6.ARPA
29-Jun-2008 15:06:20.102 automatic empty zone: B.E.F.IP6.ARPA
29-Jun-2008 15:06:20.105 default max-cache-size (33554432) applies: view _bind
29-Jun-2008 15:06:20.112 command channel listening on 127.0.0.1#953
29-Jun-2008 15:06:20.112 ignoring config file logging statement due to -g option
29-Jun-2008 15:06:20.114 zone 0.0.127.IN-ADDR.ARPA/IN: loaded serial 42
29-Jun-2008 15:06:20.121 running
root@mydns:~# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 75.125.197.200:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
沒有報錯`
在我本地 ping www.xueku.org.cn
ping www.xueku.net.cn
都不可以ping通!
[ 本帖最後由 yangzludy 於 2008-6-30 10:08 編輯 ]
《解決方案》
現在的問題,客戶端必須要設置成我DNS 的 DNS伺服器才可以
設置成默認的DNS不可以,請問是為什麼?
幫幫忙哈。
《解決方案》
設置成你的Dns當然可以解析到你的數據,而設置成默認Dns不能的話應該是,你的合法Dns伺服器的數據還未同步到世界各地的伺服器上吧,所以只能等嘍,看看那位高手還有沒有其它不用等的解決辦法.:em12:
《解決方案》
:em14: :em09: :mrgreen:
《解決方案》
C:\Documents and Settings\Administrator>dig @203.119.27.1 xueku.org.cn
; <<>> DiG 9.3.5rc2 <<>> @203.119.27.1 xueku.org.cn
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1310
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;xueku.org.cn. IN A
;; AUTHORITY SECTION:
xueku.org.cn. 21600 IN NS ns.edgora.cn.
xueku.org.cn. 21600 IN NS ns1.edgora.cn.
;; Query time: 93 msec
;; SERVER: 203.119.27.1#53(203.119.27.1)
;; WHEN: Tue Jul 01 19:41:27 2008
;; MSG SIZE rcvd: 72
C:\Documents and Settings\Administrator>dig @ns.edgora.cn www.xueku.org.cn
; <<>> DiG 9.3.5rc2 <<>> @ns.edgora.cn www.xueku.org.cn
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
C:\Documents and Settings\Administrator>dig @ns1.edgora.cn www.xueku.org.cn
; <<>> DiG 9.3.5rc2 <<>> @ns1.edgora.cn www.xueku.org.cn
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
ns/ns1.edgora.cn這兩個DNS有問題,能通才怪呢。
《解決方案》
回復 #5 llzqq 的帖子
您好 llzqq 謝謝你的回貼`
我的 ns.edgora.cn 的確是有問題!
但是 我的ns1.edgora.cn 是可以解析`xueku.org.cn的。
我設置的 主DNS 是 ns1.edgora.cn
[ 本帖最後由 yangzludy 於 2008-7-3 10:03 編輯 ]
《解決方案》
原帖由 yangzludy 於 2008-7-3 10:00 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
您好 llzqq 謝謝你的回貼`
我的 ns.edgora.cn 的確是有問題!
但是 我的ns1.edgora.cn 是可以解析`xueku.org.cn的。
我設置的 主DNS 是 ns1.edgora.cn
怎麼我測試的結果是兩個都有問題:
C:\Documents and Settings\Administrator>dig @ns1.edgora.cn xueku.org.cn
; <<>> DiG 9.3.5rc2 <<>> @ns1.edgora.cn xueku.org.cn
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
C:\Documents and Settings\Administrator>dig @ns1.edgora.cn www.xueku.org.cn
; <<>> DiG 9.3.5rc2 <<>> @ns1.edgora.cn www.xueku.org.cn
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
《解決方案》
回復 #7 llzqq 的帖子
我在 萬網 申請的域名伺服器 ns1.edgora.com 已經指定到了 我的bind9伺服器
上午 10點鐘我又 把我 ns.edgora.com 也做了解析`解析 xueku.org.cn
我的 ns.edgora.com 以前是解析 edgora.cn沒有問題
這次添加了`一個域名 xueku.org.cn現在還沒有生效果,因為萬網的DNS修改後還沒生效果吧。
我很奇怪`為什麼我把我的機器默認DNS 修改成我的bind9伺服器就可以解析呢。。
我是新手,版主見笑了`小弟不才,望您多多指教好么?
如果可以的話,可以加您的MSN 與QQ么。
我現在懷疑是 MYSQL 的問題 現在全用 zone文件來解析的我貼下 配置幫忙分析下。
cat named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "SNMYFWAAVeCB/udiejFdGw==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
include "named.conf.options";
zone "." {
type hint;
file "/usr/local/named/etc/named.root";
};
zone "localhost" {
type master;
file "/usr/local/named/etc/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/usr/local/named/etc/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/usr/local/named/etc/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/usr/local/named/etc/db.255";
};
zone "xueku.org.cn" IN {
type master;
file "/usr/local/named/etc/db.xueku.org.cn";
};
cat named.conf.options
options {
directory "/usr/local/named/etc";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// 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; };
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
allow-query { any; };
allow-recursion { any; };
allow-query-cache {any;};
datasize 2098;
// If you have DNS clients on other subnets outside of your
// server's "localnets", you can explicitly add their networks
// without opening up your server to the Internet at large:
// allow-recursion { localnets; 192.168.0.0/24; };
// If your name server is only listening on 127.0.0.1, consider:
// allow-recursion { 127.0.0.1; };
};
cat db.xueku.org.cn
@ 1D IN SOA ns1.edgora.cn. root.edgora.cn.(
2008031101 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS ns1.edgora.cn.
ns1.edgora.cn. 1D IN A 75.125.197.200
@ 10M IN MX 100 mail.xueku.org.cn.
@ 10M IN A 75.125.197.200
www 10M IN A 75.125.197.200
mail 10M IN A 75.125.197.200
ftp 10M IN A 75.125.197.200
[ 本帖最後由 yangzludy 於 2008-7-3 11:46 編輯 ]
《解決方案》
結貼,問題解決了,具體因為什麼我也說不清,就因為一條A記錄的問題。。