bind problem
I use RedHat9
I configured bind with "Bind Configuration tools". Then I typed the command "service named start". It's OK, but after that I can't stop the named. If I type the command "service named stop" the answer is : rndc: connect failed: connection refused What is the problem? |
remove bind
How can I remove bind?
|
try
ps -C named Perhaps named is not running. Check /var/log/messages to ascertain why named failed to start. |
If you want to remove the bind package,
rpm -e bind. If you simply want to stop it, ... you have reposted http://www.linuxquestions.org/questi...hreadid=207801 |
When I typed the command "ps -C named" the answer is "PID TTY TIME CMD". What does it mean?
|
It means named is not running.
/var/log/messages will have the reasons why named failed to start. You can also use #service named status to check whether named is running. |
I can't stop the named
I installed and configured the named and I started it. Then I went to the var/log/messages and saw the logs.
Part of var/log/messages Jul 22 07:47:11 opstina named[2710]: starting BIND 9.2.1 -u named Jul 22 07:47:11 opstina named[2710]: using 1 CPU Jul 22 07:47:11 opstina named: named startup succeeded Jul 22 07:47:12 opstina named[2710]: loading configuration from '/etc/named.conf' Jul 22 07:47:12 opstina named[2710]: no IPv6 interfaces found Jul 22 07:47:12 opstina named[2710]: listening on IPv4 interface lo, 127.0.0.1#53 Jul 22 07:47:12 opstina named[2710]: listening on IPv4 interface eth0, 212.200.122.123#53 Jul 22 07:47:12 opstina named[2710]: command channel listening on 127.0.0.1#953 Jul 22 07:47:12 opstina named[2710]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1 Jul 22 07:47:12 opstina named[2710]: zone 122.200.212.in-addr.arpa/IN: loaded serial 2003091101 Jul 22 07:47:12 opstina named[2710]: zone localhost/IN: loaded serial 1 Jul 22 07:47:12 opstina named[2710]: zone coka.co.yu/IN: loaded serial 2003091101 Jul 22 07:47:12 opstina named[2710]: running Jul 22 07:47:12 opstina named[2710]: zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 1) Jul 22 07:47:12 opstina named[2710]: zone 122.200.212.in-addr.arpa/IN: sending notifies (serial 2003091101) Jul 22 07:47:12 opstina named[2710]: zone coka.co.yu/IN: sending notifies (serial 2003091101) It seem to me that the named works fine, but if I want to stop it (service named stop), I can't. After that the var/log/message file: Jul 22 07:48:39 opstina named[2710]: app.c:561: unexpected error: Jul 22 07:48:39 opstina named[2710]: isc_app_shutdown() pthread_kill: No such process why can't I stop the named? |
Did you used the service command to start it?
|
I started it with command "service named start".
|
if you enter "ps ax|grep named", do you see any program named running?
|
If I enter the command above the answer is:
2750 ? S 0:00 [named] 2834 ? S 0:00 kdeinit: kwrite /etc/named.conf 2862 ? S 0:00 kdeinit: kwrite /etc/named.conf 2940 pts/1 S 0:00 grep named What does it mean? |
Ok,
the first is one thread of named running. The second and third, you are editing named.conf with kwrite. The last is the command grep, which we used to get only the processes which have "named" in the command line. Are you working for a service provider or you have a office/home network connected to internet? If your answer is the second I suggest you to use dnsmasq instead of named. Its configuration is astonishingly easy. Relating to "service named stop", maybe there was some configuration error or there is an script error (service is a script which calls another script, in your case "/etc/init.d/named"). |
you can try
#kill -9 `pidof named` pidof returns the pid (process id) of named. |
Better than this
Code:
killall -9 named |
All times are GMT -5. The time now is 11:09 AM. |