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 |
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. |
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 |
you need not restart named. You can simply reload it.
If you are using RedHat/Fedora/Mandrake Code:
service named reload Code:
kill -HUP `pidof named` |
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 |
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.
|
Thank you all
Thank you very much all for your valuable help.
|
if 'ndc' isn't available try:
rndc restart |
All times are GMT -5. The time now is 09:40 PM. |