免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: lylcboy
打印 上一主题 下一主题

[DNS] 在线等待:我的dns怎么不能够重启呀??? [复制链接]

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

在线等待:我的dns怎么不能够重启呀???

人哪???

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

在线等待:我的dns怎么不能够重启呀???

大侠,救救我!!!

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

在线等待:我的dns怎么不能够重启呀???

Q:When I try to use rndc, I get the error message "network unreachable" or "connection refused", even though I know named is running.
A:You probably have "default-server localhost" in /etc/rndc.conf, your /etc/hosts or DNS maps "localhost" to both the IPv4 loopback address 127.0.0.1 and the IPv6 loopback address ::1, and you do not have IPv6 fully operational. Change the "default-server localhost" to "default-server 127.0.0.1" to make sure rdnc does not try to contact the name server using IPv6.
以上内容来自ISC的官方站点,按照所说的,讲/etc/rndc.conf中的default-server localhost改为default-server 127.0.0.1试试看

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

在线等待:我的dns怎么不能够重启呀???

我改过了,可是启动还是不行呀,依旧是connetcion refused !

论坛徽章:
0
15 [报告]
发表于 2003-06-15 09:55 |只看该作者

在线等待:我的dns怎么不能够重启呀???

你的DNS服务到底启动了没呢?netstat -an看看udp 53端口开放没有,再看看/var/log/message文件中有没有named的记录?我现在怀疑你的dns服务没有根本没有起来了

论坛徽章:
0
16 [报告]
发表于 2003-06-15 10:57 |只看该作者

在线等待:我的dns怎么不能够重启呀???

我就是启动不了呀!

论坛徽章:
0
17 [报告]
发表于 2003-06-15 11:19 |只看该作者

在线等待:我的dns怎么不能够重启呀???

dns配置文件贴上来看看

论坛徽章:
0
18 [报告]
发表于 2003-06-15 11:26 |只看该作者

在线等待:我的dns怎么不能够重启呀???

named.conf:


  1. // generated by named-bootconf.pl

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

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

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


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

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

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

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

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

论坛徽章:
0
19 [报告]
发表于 2003-06-15 21:00 |只看该作者

在线等待:我的dns怎么不能够重启呀???

啊?看你的题目还以为是服务正常启动了呢?如果是服务起不来,看日志吧,里面会有详细的记录,很容易找到问题

论坛徽章:
0
20 [报告]
发表于 2003-06-15 23:36 |只看该作者

在线等待:我的dns怎么不能够重启呀???

老兄,检查一下你的stu.zone
看里面是不是加了不该加的空格
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP