免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1917 | 回复: 5
打印 上一主题 下一主题

[DNS] 我的dns不能重启,配置在此,请帮忙审查一下! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-14 01:39 |只看该作者 |倒序浏览
以下是我的/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]

论坛徽章:
0
2 [报告]
发表于 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";
};

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-06-14 11:39 |只看该作者

我的dns不能重启,配置在此,请帮忙审查一下!

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

论坛徽章:
0
4 [报告]
发表于 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

论坛徽章:
0
5 [报告]
发表于 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
复制代码

论坛徽章:
0
6 [报告]
发表于 2003-06-14 22:14 |只看该作者

我的dns不能重启,配置在此,请帮忙审查一下!

你先配置成功forwarders 后,再尝试自己做DNS吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP