LinuxQuestions.org
Help answer threads with 0 replies.
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 10-26-2004, 10:49 AM   #1
imsam
Member
 
Registered: Dec 2003
Posts: 64

Rep: Reputation: 15
How come I can't stop named?


Hi,

When I type "service named stop" nothing happens.

I type "service named status" it tells me that the server is up and running.

Then I type "service named start" it tells me that it's already running.

I'm a newbie and just installed RH9 and using the GUI setup, I selected DNS server setup. However, when I was done w/ setup "named" was not started.

I manually started named and put it under RunLevel 3. Am I making a mistake somewhere?
 
Old 10-26-2004, 12:38 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Just so we are on the same page, can you post the following command outputs?
Code:
[root@voyager etc]# service named start
Starting named:                                            [  OK  ]
[root@voyager etc]# service named status                                 
number of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@voyager etc]# service named stop  
Stopping named:                                            [  OK  ]
[root@voyager etc]# service named status
rndc: connect failed: connection refused
FYI:
service named stop = rndc stop
service named status = rndc status

In short, check /etc/rndc.key, /etc/rndc.conf and /etc/named.conf to make sure your key definitions are correct.
 
Old 10-26-2004, 01:28 PM   #3
imsam
Member
 
Registered: Dec 2003
Posts: 64

Original Poster
Rep: Reputation: 15
Message I get

Hi,

What I see on the screen is identical to what you put in your post except for the fact that I don't get [OK] after I enter service named stop. It does say Stopping named: but I never get the OK.

Here's what I'm seeing:
Code:
[root@MyTestDNS etc]# service named start
Starting named:                                            [  OK  ]
[root@MyTestDNS etc]# service named status                                 
number of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@MyTestDNS etc]# service named stop  
Stopping named:
[root@MyTestDNS etc]# service named status                                 
number of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@MyTestDNS etc]# service named start
named: Already running[root@MyTestDNS etc]#
I checked the rndc.key, rndc.conf and named.conf files. They're all there. I'm not sure what I'm looking for but they're there.
 
Old 10-26-2004, 02:08 PM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I'm at a loss as to why named is not stopping on your system. My goal in having you paste the output of those commands was to verify your rndc keys were properly configured; which they are. The " rndc status" output verified that.

At this point, I would look in /var/log/messages to see if there are any errors associated with stopping named. Maybe checking if there is a newer version of bind available. Check the redhat site to see if there have been any problems logged against bind running on RH9, Something along those lines.
 
Old 10-26-2004, 03:04 PM   #5
imsam
Member
 
Registered: Dec 2003
Posts: 64

Original Poster
Rep: Reputation: 15
RedHat related problem!

Hi,

Scowles thanks for your help. A little research on Google indicates this is a RH related problem. Here's what someone who's having the same exact problem said

Quote:
Just did a redhat kernel upgrade, from 2.4.20-8 to 2.4.20-24.9, which fixed the problem. I can now stop named using rndc without any problems.[/
Now, this brings up another question. Because I'm a newbie, I don't know how to do kernel updates. Could anyone give me an idea about where to get them and how to install them using nothing but the command prompt.

The great thing about this experience is that I'm learning so much about Linux. My DNS setup was for testing and learning purposes so this is working out great.

Again, I'd appreciate some pointer on how to do a kernel update.

Last edited by imsam; 10-26-2004 at 03:06 PM.
 
Old 10-26-2004, 04:43 PM   #6
baz2
Member
 
Registered: Nov 2002
Posts: 73

Rep: Reputation: 15
Re: RedHat related problem!

Quote:
Originally posted by imsam
Again, I'd appreciate some pointer on how to do a kernel update.
The easiest thing to do is go here . Download the appropriate RPM file for your architecture (hardware). Then, like the instructions say, do a

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.

I better solution would be to upgrade to Fedora Core 2, which will get you into the 2.6x kernel. Then, go to www.fedorafaq.org, get the yum.conf file they have there, and do

yum update

to keep up to date.
 
  


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
why won't named stop?? jillu Linux - Networking 4 09-13-2004 10:22 PM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 01:49 PM
service named can't stop... TAAN Linux - Networking 1 09-11-2003 04:43 AM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 06:27 PM
why my named service stop after running a few minute? lzyking Linux - Software 4 06-24-2003 10:15 AM

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

All times are GMT -5. The time now is 03:53 AM.

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
Open Source Consulting | Domain Registration