- 论坛徽章:
- 1
|
我按照论坛上的精华去配置redhat as 2.1自带的DNS,但无论怎样配都出现如何出错信息
>; mail.chen.com
Server: 172.16.23.9
Address: 172.16.23.9#53
** server can't find mail.chen.com.: SERVFAIL
>; 172.16.23.9
Server: 172.16.23.9
Address: 172.16.23.9#53
** server can't find 9.23.16.172.in-addr.arpa.: SERVFAIL
>;
但我本机却能正常解析
>; localhost
Server: 172.16.23.9
Address: 172.16.23.9#53
Name: localhost
Address: 127.0.0.1
现在附帖上我的配置文件,请各位高手帮忙看看到底那里出错了?
[tong@chen tong]$ more /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* 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 "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "chen.com" IN {
type master;
file "chen.com";
};
zone "23.16.172.in-addr.arpa" IN {
type master;
file "23.16.172";
allow-update { none; };
};
include "/etc/rndc.key";
感觉这个文件应该没有问题吧?
more /var/named/chen.com
$TTL 86400
@ IN SOA chen.com. root.chen.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@1D IN NS chen.com.
@ 1D IN MX 10 chen.com.
$ORIGIN chen.com.
1D IN A 172.16.23.9
www 1D IN A 172.16.23.9
ns 1D IN A 172.16.23.9
mail 1D IN A 172.16.23.9
#more /var/named/23.16.172
TTL
@ IN SOA ns.chen.com. root.chen.com.(
19997022700;serial
28800; refresh
14400; retry
3600000; expire
@ IN NS chen.com.
1 IN PTR chen.com.
2 IN PRT mail.chen.com.
4 IN PRT ns.chen.com.
应该是上面两个文件有问题,但我改来改去还是不行.另外请问DNS服务如何重启,因为我找不到in.named这个文件,一直只能用重启电脑来重启,好麻烦. |
|