- 论坛徽章:
- 0
|
以下是我的/etc/named.conf,为什么我的dns不能重启呀?出现以下错误:
- [root@lylcboy /]# /etc/init.d/named restart
- Stopping named: rndc: connect failed: connection refused [FAILED]
- Starting named: [FAILED]
复制代码
/etc/named.conf:
- // generated by named-bootconf.pl
- options {
- directory "/var/named";
- pid-file "named.pid";
- auth-nxdomain yes;
- forwarders { 202.197.192.10;}
- /*
- * 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;
- };
- //How to log
- logging {
- channel warning {
- file "/var/log/dns_warnings" versions 3 size 100k;
- severity warning;
- print-category yes;
- print-severity yes;
- print-time yes;
- };
- channel general_dns {
- file "/var/log/dns_logs" versions 3 size 100k;
- severity info;
- print-category yes;
- print-severity yes;
- print-time yes;
- };
- category default { warning; };
- category queries { general_dns; };
- };
- //
- // 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 "stu.zepc.edu.cn" IN {
- type master;
- notify no;
- file "stu.zone";
- };
- zone "200.197.202.in-addr.arpa" IN {
- type master;
- notify no;
- file "name2ip";
- };
- include "/etc/rndc.key";
复制代码 [/code] |
|