|
主要是语法问题,多亏了webmin软件帮我检查语法。
neo@gentoo /etc/bind $ host www.testdns.com
Host www.testdns.com not found: 2(SERVFAIL)
named.conf
options {
directory "/var/bind";
};
zone "." IN {
type hint;
file "pri/named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arap" IN {
type master;
file "pri/127.zone";
allow-update { none; };
};
zone "testdns.com" IN {
type master;
file "pri/testdns.com.dns";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "pri/testdns.com.rev";
allow-update { none; };
};
logging {
channel default_syslog {
file "/var/log/named/named.log" versions 3 size 5m;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
category default { default_syslog; };
};
include "/etc/bind/rndc.key";
testdns.com.dns
$TTL 86400
$ORIGIN testdns.com.
@ IN SOA testdns.com. root.testdns.com. (
20081103; serial
120; refresh
14400; retry
3600000; expiry
86400); minimum
IN NS testdns.com.
dns IN A 192.168.0.2
www IN A 192.168.0.2
testdns.com.rev
$TTL 86400
$ORIGIN testdns.com.
@ IN SOA testdns.com. root.testdns.com. (
20081103; serial
120; refresh
14400; retry
3600000; expiry
86400 ); minimum
IN NS testdns.com.
2 IN PTR dns.testdns.com.
2 IN PTR www.testdns.com. |
|