|
我的DNS 服务器不能工作,用
dig baidu.com
; <<>> DiG 9.4.2 <<>> baidu.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23198
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;baidu.com. IN A
;; ANSWER SECTION:
baidu.com. 5319 IN A 202.108.22.46
baidu.com. 5319 IN A 220.181.38.84
;; AUTHORITY SECTION:
baidu.com. 77327 IN NS dns.baidu.com.
baidu.com. 77327 IN NS ns3.baidu.com.
baidu.com. 77327 IN NS ns4.baidu.com.
baidu.com. 77327 IN NS ns2.baidu.com.
;; ADDITIONAL SECTION:
ns2.baidu.com. 164187 IN A 61.135.165.235
ns3.baidu.com. 166662 IN A 220.181.37.10
ns4.baidu.com. 77530 IN A 220.181.38.10
dns.baidu.com. 166662 IN A 202.108.22.220
;; Query time: 1188 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Nov 14 17:38:16 2008
;; MSG SIZE rcvd: 195
=====================================================================================================
但是我
dig 39c.org axfr
却提示
; <<>> DiG 9.4.2 <<>> 39c.org axfr
;; global options: printcmd
; Transfer failed.
查询 /var/log/messages 文件。说:
Nov 14 16:45:39 dev named[934]: starting BIND 9.4.2 -t /var/named -u bind
Nov 14 16:45:40 dev named[934]: command channel listening on 127.0.0.1#953
Nov 14 16:45:40 dev named[934]: command channel listening on ::1#953
Nov 14 16:45:40 dev named[934]: master/39c.org:3: ignoring out-of-zone data (39c.org)
Nov 14 16:45:40 dev named[934]: master/39c.org:11: ignoring out-of-zone data (39c.org)
Nov 14 16:45:40 dev named[934]: master/39c.org:14: ignoring out-of-zone data (dev.39c.org)
Nov 14 16:45:40 dev named[934]: master/39c.org:20: ignoring out-of-zone data (39c.org)
Nov 14 16:45:40 dev named[934]: zone 39.org/IN: has 0 SOA records
Nov 14 16:45:40 dev named[934]: zone 39.org/IN: has no NS records
Nov 14 16:45:40 dev named[934]: running
=====================================================================================================
我的 master/39c.org 文件内容如下:
$TTL 3600
39c.org. IN SOA dev.39c.org. root.39c.org. (
1 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL
;DNS Servers
39c.org. IN NS dev.39c.org.
;Machine Names
dev.39c.org. IN A 192.168.0.80
;Aliases
www IN CNAME dev.39c.org.
;MX Record
39c.org. IN MX 10 dev.39c.org.
=====================================================================================================
我判断是我的39c.org 域文件有问题,可是我对照教程上的源码,没有错误。我只是把教程中的 example.com 替换成我的域名 39c.org 。
请帮下我! |
|