Chinaunix

标题: 我的dns不能重启,配置在此,请帮忙审查一下! [打印本页]

作者: lylcboy    时间: 2003-06-14 01:39
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
以下是我的/etc/named.conf,为什么我的dns不能重启呀?出现以下错误:

  1. [root@lylcboy /]# /etc/init.d/named restart
  2. Stopping named: rndc: connect failed: connection refused   [FAILED]
  3. Starting named:                                                                    [FAILED]
复制代码


/etc/named.conf:

  1. // generated by named-bootconf.pl

  2. options {
  3.         directory "/var/named";
  4.         pid-file "named.pid";
  5.         auth-nxdomain yes;
  6.         forwarders { 202.197.192.10;}
  7.         /*
  8.          * If there is a firewall between you and nameservers you want
  9.          * to talk to, you might need to uncomment the query-source
  10.          * directive below.  Previous versions of BIND always asked
  11.          * questions using port 53, but BIND 8.1 uses an unprivileged
  12.          * port by default.
  13.          */
  14.          query-source address * port 53;
  15. };

  16. //How to log
  17. logging {
  18.         channel warning {
  19.                         file "/var/log/dns_warnings" versions 3 size 100k;
  20.                         severity warning;
  21.                         print-category yes;
  22.                         print-severity yes;
  23.                         print-time yes;
  24.                         };
  25.         channel general_dns {
  26.                         file "/var/log/dns_logs" versions 3 size 100k;
  27.                         severity info;
  28.                         print-category yes;
  29.                         print-severity yes;
  30.                         print-time yes;
  31.                         };
  32.         category default { warning; };
  33.         category queries { general_dns; };
  34. };
  35. //
  36. // a caching only nameserver config
  37. //

  38. controls {
  39.         inet 127.0.0.1 allow {localhost;} keys { rndckey };
  40. };


  41. zone "." IN {
  42.         type hint;
  43.         file "named.ca";
  44. };

  45. zone "localhost" IN {
  46.         type master;
  47.         file "localhost.zone";
  48.         allow-update { none; };
  49. };

  50. zone "0.0.127.in-addr.arpa" IN {
  51.         type master;
  52.         file "named.local";
  53.         allow-update { none; };
  54. };

  55. zone "stu.zepc.edu.cn" IN {
  56.         type master;
  57.         notify no;
  58.         file "stu.zone";
  59. };

  60. zone "200.197.202.in-addr.arpa" IN {
  61.         type master;
  62.         notify no;
  63.         file "name2ip";
  64. };
  65. include "/etc/rndc.key";

复制代码
[/code]
作者: itbbs    时间: 2003-06-14 10:33
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
forwarders { 202.197.192.10;} 这里少了一个;
另外您是利用别人的设备做DNS查询,个人认为下面的定义没有什么用。
zone "stu.zepc.edu.cn" IN {
        type master;
        notify no;
        file "stu.zone";
};
作者: 阿骁    时间: 2003-06-14 11:39
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
应该是你的 rndc 没有弄好!检查一下你的 rndc 的配置。
作者: lylcboy    时间: 2003-06-14 11:53
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
另外您是利用别人的设备做DNS查询,个人认为下面的定义没有什么用。
zone "stu.zepc.edu.cn" IN {
type master;
notify no;
file "stu.zone";
};

我的主要目的是配置自己的dns,不过我到是可以把forwarders去掉!

应该是你的 rndc 没有弄好!检查一下你的 rndc 的配置


能不能说的详细一点,我是按照这个配的呀:http://chinaunix.net/forum/viewtopic.php?t=16678
作者: lylcboy    时间: 2003-06-14 11:57
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
我现在什么都搞不成,帮帮我,好吗?

  1. # /etc/init.d/named status
  2. rndc: connect failed: connection refused
  3. # /usr/sbin/rndc restart
  4. rndc: 'restart' is not implemented
  5. # /usr/sbin/rndc reload
  6. rndc: connect failed: connection refuse
复制代码

作者: itbbs    时间: 2003-06-14 22:14
标题: 我的dns不能重启,配置在此,请帮忙审查一下!
你先配置成功forwarders 后,再尝试自己做DNS吧




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2