|
|
各位老大,请教一个bind的问题,反向解析正常的,但是自己设置的域名pk2ak47.com为何无法解析?
配置文件一:
guest@0[Debian]$ cat /etc/bind/named.conf | less
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
options {
directory "/var/cache/bind";
// 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
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/var/cache/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "pk2ak47.com" {
type master;
file "/var/cache/bind/db.gst";
};
zone "localhost" {
type master;
file "/var/cache/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/var/cache/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/var/cache/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/var/cache/bind/db.255";
};
zone "66.0.10.in-addr.arpa" {
type master;
file "/var/cache/bind/db.10.0.66";
};
// add entries for other zones below here
配置文件二:
guest@0[Debian]$ cat /var/cache/bind/db.gst | less
;
; BIND data file for pk2ak47.com
;
$TTL 604800
@ IN SOA debian.pk2ak47.com. root.debian-sk.pk2ak47.com. (
20050628 ; Serial
3600 ; Refresh
72000 ; Retry
36000 ; Expire
604800 ) ; Negative Cache TTL
NS pk2ak47.com.
;
pk2ak47.com. IN NS debian.pk2ak47.com.
pk2ak47.com. IN A 172.25.3.237
;
ns1.pk2ak47.com. IN A 10.0.66.73
;
www IN CANME debian.pk2ak47.com.
ftp IN CNAME debian.pk2ak47.com.
mail IN CNAME debian.pk2ak47.com.
下面是结果:
guest@0[Debian]$ dig -x 127.0.0.1
; <<>> DiG 9.2.1 <<>> -x 127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59128
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 604800 IN PTR debian.pk2ak47.com.
;; AUTHORITY SECTION:
127.in-addr.arpa. 604800 IN NS debian.pk2ak47.com.
;; Query time: 318 msec
;; SERVER: 172.25.3.237#53(172.25.3.237)
;; WHEN: Wed Jun 29 19:04:51 2005
;; MSG SIZE rcvd: 86
但是pk2ak47.com解析不出来,
guest@0[Debian]$ dig pk2ak47.com
; <<>> DiG 9.2.1 <<>> pk2ak47.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 49741
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;pk2ak47.com. IN A
;; Query time: 4 msec
;; SERVER: 172.25.3.237#53(172.25.3.237)
;; WHEN: Wed Jun 29 19:04:42 2005
;; MSG SIZE rcvd: 29
请哪位老大给予分析?. |
|