LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2004, 06:26 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
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?
 
Old 07-21-2004, 06:43 AM   #2
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
remove bind

How can I remove bind?
 
Old 07-21-2004, 06:47 AM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
try

ps -C named

Perhaps named is not running.

Check /var/log/messages to ascertain why named failed to start.
 
Old 07-21-2004, 06:49 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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
 
Old 07-21-2004, 06:53 AM   #5
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
When I typed the command "ps -C named" the answer is "PID TTY TIME CMD". What does it mean?
 
Old 07-21-2004, 06:57 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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.
 
Old 07-22-2004, 01:28 AM   #7
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
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?
 
Old 07-22-2004, 01:40 AM   #8
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Did you used the service command to start it?
 
Old 07-22-2004, 01:44 AM   #9
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I started it with command "service named start".
 
Old 07-22-2004, 01:47 AM   #10
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
if you enter "ps ax|grep named", do you see any program named running?
 
Old 07-22-2004, 02:08 AM   #11
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
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?
 
Old 07-22-2004, 02:28 AM   #12
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
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").
 
Old 07-22-2004, 02:38 AM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can try

#kill -9 `pidof named`

pidof returns the pid (process id) of named.
 
Old 07-22-2004, 02:40 AM   #14
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Better than this
Code:
killall -9 named
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bind problem hansi umayangan Linux - Newbie 1 02-28-2005 10:42 PM
Bind problem WiWa Linux - Networking 4 06-03-2004 09:53 AM
problem with bind krimson Linux - Networking 3 01-22-2004 06:50 PM
problem with bind krimson Linux - Software 0 01-19-2004 05:42 PM
problem bind 9.xx Rana Saud Linux - Networking 1 07-15-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration