LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-23-2004, 12:26 PM   #1
imsam
Member
 
Registered: Dec 2003
Posts: 64

Rep: Reputation: 15
Do I need to restart Named after making DNS changes?


Hi,

I'm fairly new to Linux. We're using RedHat 9.

I think after making DNS record changes I need to increment the Serial Number by one, save the .dns file and restart named. Is this correct?

I'm also having trouble restarting named. I did some google searches and they suggest I need to do /usr/sbin/ndc restart but when I do that I get an error message that states there's no such file.

One article I found suggests, if I don't have ndc, I must have an old system. It suggests I do /usr/sbin/named restart.

However, when I try that it's expecting more parameters.

So I'm a little confused about the process. I'm also not sure if I need to go to the secondary server and do anything after making my changes on the primary server.

I'd appreciate some pointers on how to handle DNS on a Linux box. Thanks.

Sam
 
Old 07-23-2004, 12:39 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
after each change to your .dns file, you must change the serial number - increment it by one.

The unwritten standard is yyyymmddnn e.g. if you made a change for the 5th time today, you can have a serial number of 2004072205.

You do not really have to restart named.
 
Old 07-23-2004, 12:53 PM   #3
imsam
Member
 
Registered: Dec 2003
Posts: 64

Original Poster
Rep: Reputation: 15
What if I create a new dns record?

Do I need to restart named if I create a new dns record i.e. a new domain?

And how do I restart named anyway? Thanks.

Sam
 
Old 07-23-2004, 01:14 PM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you need not restart named. You can simply reload it.

If you are using RedHat/Fedora/Mandrake
Code:
service named reload
OR simply
Code:
kill -HUP `pidof named`
Please note ` is not apostrophe.
 
Old 07-23-2004, 03:13 PM   #5
imsam
Member
 
Registered: Dec 2003
Posts: 64

Original Poster
Rep: Reputation: 15
Do I have to create DNS records on the secondary server?

If I'm creating the necessary records for a new domain, I do the following on the primary server:

1. MyDomain.com.dns file in /var/named
2. Put a reference to MyDomain.com.dns file in /etc/named.conf
3. service named reload

After this, do I need to go through the same steps on the secondary DNS server? Obviously, I set it so that the records read "slave" instead of "master" on the secondary server.

Thanks.

Sam
 
Old 07-24-2004, 04:01 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
You do not have to do anything to the secondary server .. only edit the named.conf on your secondary server to make it aware of the new domain.
 
Old 07-24-2004, 08:56 AM   #7
imsam
Member
 
Registered: Dec 2003
Posts: 64

Original Poster
Rep: Reputation: 15
Thank you all

Thank you very much all for your valuable help.
 
Old 07-24-2004, 01:02 PM   #8
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
if 'ndc' isn't available try:

rndc restart
 
  


Reply



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
Restart after making a change with YaST ? cwolf78 Linux - General 2 05-08-2005 10:57 AM
DNS named and /etc/hosts Pollyanna Linux - Networking 0 03-22-2004 02:39 PM
named - dns - problems blaci Linux - General 2 07-22-2003 01:32 AM
[DNS/NAMED] What is the SOA? BxBoy Linux - Networking 1 03-09-2003 04:31 PM
Named cache kept through restart or reboot Supp0rtLinux Linux - Networking 2 01-21-2002 05:11 PM

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

All times are GMT -5. The time now is 06:44 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
Open Source Consulting | Domain Registration