Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have configured one primary(master) and secondary (slave)dns server in my RHEL-5 network. I want to know how can I set time interval for sync between these two servers whenever records get updated on primary dns server. It takes much time to replicate new records to slave server. How can I update slave records manually without waiting for default time interval? what are the useful commands for replication between master and slave servers ?
It's supposed to be done automatically. I.e. whenever a change occurs in a primary zone, master dns notifies the slave about that change. I suggest you to look better at your configuration on both master and slave server and also take a look at the dns howto.
If you insist on updating slave manually, you can run:
Code:
rndc reload domain.com
But once again I tell you to look at your configuration and maybe logs to find out what's the problem, since this should happen automatically (as soon as you make a change on the primary and reload the zone the primary should notify the slave about the change).
ns2 is unable to resolve queries when ns1 gets down.Why ?/these are the only enteries which i entered in named files.(There is no syntex error in any file).I had manually type below enteries.
As iold you earlier that i have manually type these enteries here in this forum.So please ignore these errors.when i check zone file in slave, sometimes it shows update and sometimes not.I donot know the reason.I wanna know why slave is not taking the role of master when master gets down.
Please ignore any syntex like . : and ; I have checked them all.
How do you reload a zone in your master, right after you make a change?
Make a change in a master zone, increase the serial and watch /var/log/messages (or whatever logfile dns changes are logged) to see what happens when you're reloading the zone.
I have only edited the zone file and change the serial number and nothing else.Do we have to reload the zone manually? If yes ,How?
I changed the serial number, modified the zone file but no message in /var/log/message.I have changed the resfresh time from default to 1 min. Even then no information of zone transfer in /var/log/message file.It takes more than 1-2 hr. for slave for updation.
I have only edited the zone file and change the serial number and nothing else.Do we have to reload the zone manually? If yes ,How?
Whenever you make a change in a zone in your master dns you must reload/restart named manually in order for the changes to take effect immediately. This can be done running one of the following:
Code:
rndc reload <--check all zones for changes
rndc reload 7i.net.sa <--reloads only specific zone
killall -HUP named <--restarts named and re-reads zone files
or you can just stop/start named.
After master dns gets notified about the changes, it also notifies the slave about them.
So your problem was that you didn't reload the zone after making changes!! I thought it's obvious that when you make a change you should somehow notify named about it.
Anyway glad to see it worked.
I'm sorry but I can't help you on this since I have no experience on these tools. Perhaps someone else can help you.
What I suggest you is to read the documentation and try to figure out how to accomplish what you want to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.