LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   bind problem (https://www.linuxquestions.org/questions/linux-networking-3/bind-problem-207801/)

gubak 07-21-2004 06:26 AM

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?

gubak 07-21-2004 06:43 AM

remove bind
 
How can I remove bind?

ppuru 07-21-2004 06:47 AM

try

ps -C named

Perhaps named is not running.

Check /var/log/messages to ascertain why named failed to start.

ppuru 07-21-2004 06:49 AM

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

gubak 07-21-2004 06:53 AM

When I typed the command "ps -C named" the answer is "PID TTY TIME CMD". What does it mean?

ppuru 07-21-2004 06:57 AM

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.

gubak 07-22-2004 01:28 AM

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?

osvaldomarques 07-22-2004 01:40 AM

Did you used the service command to start it?

gubak 07-22-2004 01:44 AM

I started it with command "service named start".

osvaldomarques 07-22-2004 01:47 AM

if you enter "ps ax|grep named", do you see any program named running?

gubak 07-22-2004 02:08 AM

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?

osvaldomarques 07-22-2004 02:28 AM

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").

ppuru 07-22-2004 02:38 AM

you can try

#kill -9 `pidof named`

pidof returns the pid (process id) of named.

osvaldomarques 07-22-2004 02:40 AM

Better than this
Code:

killall -9 named


All times are GMT -5. The time now is 11:09 AM.