Chinaunix

标题: 在线等待:我的dns怎么不能够重启呀??? [打印本页]

作者: lylcboy    时间: 2003-06-13 23:48
标题: 在线等待:我的dns怎么不能够重启呀???
# /etc/init.d/named restart
Stopping named: rndc: connect failed: connection refused
                                                           [FAILED]
Starting named:                                            [  OK  ]
作者: lylcboy    时间: 2003-06-14 01:07
标题: 在线等待:我的dns怎么不能够重启呀???
[root@lylcboy /]# /etc/init.d/named restart
Stopping named: rndc: connect failed: connection refused
                                                           [FAILED]
Starting named:                                            [FAILED]
作者: depike    时间: 2003-06-14 08:27
标题: 在线等待:我的dns怎么不能够重启呀???
先看看/etc/init.d/named status输出是什么,另外建议bind9使用rndc命令控制named进程,例如重启:rndc restart
作者: lylcboy    时间: 2003-06-14 11:43
标题: 在线等待:我的dns怎么不能够重启呀???
#  /etc/init.d/named status
rndc: connect failed: connection refused
#  /usr/sbin/rndc restart
rndc: 'restart' is not implemented
#  /usr/sbin/rndc reload
rndc: connect failed: connection refuse
作者: lylcboy    时间: 2003-06-14 12:34
标题: 在线等待:我的dns怎么不能够重启呀???
为什么会出现connection refuse的情况?
作者: lylcboy    时间: 2003-06-14 14:44
标题: 在线等待:我的dns怎么不能够重启呀???
怎么没人说话呢????     
作者: csona    时间: 2003-06-14 15:07
标题: 在线等待:我的dns怎么不能够重启呀???
你先關閉,然後在重啟看看行不行.
作者: lylcboy    时间: 2003-06-14 15:16
标题: 在线等待:我的dns怎么不能够重启呀???

  1. # /etc/init.d/named stop
  2. Stopping named: rndc: connect failed: connection refus   [FAILED]
复制代码


我启动不了!!!
作者: lylcboy    时间: 2003-06-14 15:18
标题: 在线等待:我的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
复制代码

作者: lylcboy    时间: 2003-06-14 16:43
标题: 在线等待:我的dns怎么不能够重启呀???
怎么没人知道呀???
作者: lylcboy    时间: 2003-06-14 17:23
标题: 在线等待:我的dns怎么不能够重启呀???
人哪???
作者: lylcboy    时间: 2003-06-14 21:05
标题: 在线等待:我的dns怎么不能够重启呀???
大侠,救救我!!!
作者: depike    时间: 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试试看
作者: lylcboy    时间: 2003-06-15 09:21
标题: 在线等待:我的dns怎么不能够重启呀???
我改过了,可是启动还是不行呀,依旧是connetcion refused !
作者: depike    时间: 2003-06-15 09:55
标题: 在线等待:我的dns怎么不能够重启呀???
你的DNS服务到底启动了没呢?netstat -an看看udp 53端口开放没有,再看看/var/log/message文件中有没有named的记录?我现在怀疑你的dns服务没有根本没有起来了
作者: lylcboy    时间: 2003-06-15 10:57
标题: 在线等待:我的dns怎么不能够重启呀???
我就是启动不了呀!
作者: jianxin0431    时间: 2003-06-15 11:19
标题: 在线等待:我的dns怎么不能够重启呀???
dns配置文件贴上来看看
作者: lylcboy    时间: 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";
复制代码

作者: depike    时间: 2003-06-15 21:00
标题: 在线等待:我的dns怎么不能够重启呀???
啊?看你的题目还以为是服务正常启动了呢?如果是服务起不来,看日志吧,里面会有详细的记录,很容易找到问题
作者: wildgoose    时间: 2003-06-15 23:36
标题: 在线等待:我的dns怎么不能够重启呀???
老兄,检查一下你的stu.zone
看里面是不是加了不该加的空格
作者: lylcboy    时间: 2003-06-16 03:39
标题: 在线等待:我的dns怎么不能够重启呀???
我配这个,纯綷是为了学点东西,也就是说,我并没有向我的上一级DNS申请什么(其实是没被批准! ),我想别不会是因为这个原因吧???
作者: wildgoose    时间: 2003-06-16 08:16
标题: 在线等待:我的dns怎么不能够重启呀???
lylcboy你在郑州市商城路,我们邻居呀,有空交流一下




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