- 论坛徽章:
- 0
|
我使用dig命令察看163时显示
[root@mail ~]# dig 163.com
; <<>> DiG 9.2.4 <<>> 163.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2078
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;163.com. IN A
;; ANSWER SECTION:
163.com. 455 IN A 220.181.29.154
;;;; AUTHORITY SECTION:
163.com. 17477 IN NS ns3.nease.net.
163.com. 17477 IN NS ns.nease.net.
;; ADDITIONAL SECTION:
ns.nease.net. 2975 IN A 202.106.185.75
ns3.nease.net. 10191 IN A 220.181.28.3
;; Query time: 60 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug 14 13:01:34 2006
;; MSG SIZE rcvd: 117
而察看我自己的域名时却显示
[root@mail ~]# dig xxx.com.cn
; <<>> DiG 9.2.4 <<>> xxx.com.cn
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19886
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;xxx.com.cn. IN A
;; AUTHORITY SECTION:
xxx.com.cn. 500 IN SOA xxx.com.cn. root.localhost.xxx.com.cn. 2 600 500 500 500
;; Query time: 49 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug 14 12:52:23 2006
;; MSG SIZE rcvd: 81
这是我的ect/named.conf
//
// named.conf for Red Hat caching-nameserver
//
acl "trust-lan" { 127.0.0.1/8; xxx.xxx.xxx.xxx/24; xxx.xxx.xxx.xxx/24; };
options {
version "xxx.com.cn";
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
recursion yes;
allow-recursion { trust-lan; };
allow-transfer { trust-lan; };
notify yes;
forward first;
forwarders{xxx.xxx.xxx.xxx;xxx.xxx.xxx.xxx;};
listen-on-v6 { none; };
/*
* 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 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};
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.ip6.arpa" IN {
type master;
file "named.ip6.local";
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
};
zone "xxx.com.cn" {
type master;
file "xxx.com.cn.zone";
notify yes;
};
zone "xxx.com.cn" {
type master;
file "aidc.com.cn.zone";
notify yes;
};
zone "xxx.xxx.xxx.in-addr.arpa" {
type master;
file "xxx.xxx.xxx.in-addr.arpa.zone";
};
include "/etc/rndc.key";
这是我的/var/named/chroot/var/named/xxx.com.cn.zone
$TTL 500
@ IN SOA @ root.localhost (
2 ; serial
600 ; refresh
500 ; retry
500 ; expire
500 ; ttl
)
IN NS ns
IN MX 10 mail
ns IN A xxx.xxx.xxx.xxx
www IN A xxx.xxx.xxx.xxx
mail IN A xxx.xxx.xxx.xxx
bbs IN A xxx.xxx.xxx.xxx
zcl IN A xxx.xxx.xxx.xxx
~
为什么我的结果会是这样,不规则还显示了内容。并且缺少了橙色的两行为什么呢???
谁能帮忙看看哪有什么问题谢谢了!!!
[ 本帖最后由 yjc2688 于 2006-8-22 17:35 编辑 ] |
|