Replicating Bind 9 between Windows 2008 and CentOS 5.7
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Replicating Bind 9 between Windows 2008 and CentOS 5.7
Hello,
This is my first post, so hopefully it proves a successful one! I recently have moved my Web/Email hosting to a managed server environement. I am migrating my Windows 2003 Server to the two Hosted Servers listed below:
Main Server
Windows Server 2008 R2
Parallels Plesk 10.4
SmarterMail 8.x
IIS7
BIND9
Backup Server
CentOS 5.7
Webmin 1.580
BIND9
My Question: There has to be a way to replicate the DNS between my two servers, no? Our current process is to setup new webhost customers on our Main Plesk Server, this will be our Primary DNS server. I would like to have the Main Server push the DNS records to the BIND9 server on the backup server and have my backup dns record point to it. Is this possible? If so, how?
I asked the company that is managing my servers if this can be done and here is their response :
"That would require a cron job that fires off from your webserver to your backup server, rsyncing the zone file path from each server.
This would require a developer to write the cron job as that is past what our technical support will provide."
I am rather new to Linux, but am picking it up pretty quickly. Any help or insight is greatly appreciated.
I am very sketchy on Windows DNS on 2008, running on vCenter servers.
(In RHEL5 you can install system-config-bin package along with X windows)
yum groupinstall "X Window System"
yum install bind bind-chroot system-config-bind
(exit your shell)
then log in with:
ssh -X user@yourserver (to export the X environment)
then run system-config-bind (and it will create a skeleton config I learned from the RHCE course).
system-config-bind is no longer available in RHEL6
****NOTE you will need a symlink from /var/named/chroot/etc/named.conf to /etc****
However, it should work the (not sure how Windows Server 2008) handles access control list, but it will need to have the ip of the CentOS bind server in it for it to receive zone file transfers.
I have 2 bind dns servers master & slave, the acl's on the primary include the ip addresses of the secondary.
You do not want recursion on the secondary.
also I added this stanza to be rid of all of the unwanted log traffic from lame servers
logging {
category lame-servers { null; };
};
Your W2k8 server once it allows the secondary slave server, configure you CentOS box with slave zone files.
It will automatically refresh the zone files without having to run cronjobs.
If you make changes on the primary DNS server, you can configure (rndc) on your secondary and do a refresh on the specific zone file.
/var/named/chroot/etc
in your named.conf
your zone files will be in:
/var/named/chroot/var/named
all of your listen on, acl's and your zone references from your master will all have 'slave' in the config.
Not too familiar with verbose logging on w2k8 dns, however watch your logs on centos and once you get your config in place run:
named-checkconf /etc/named.conf --> if no data output then no syntax errors
also
service named configtest
handy for diags
you can turn on query logging in bind as well, every query that comes in will write out to the log file, (YOU do not want to leave this on).
I can remove files from the secondary/slave server (zone files) and upon restarting named it does zone transfers recreating them.
Don't forget about updating your serial numbers on your primary when you do changes so the secondary will reflect the changes on zone transfers.
Last edited by rhbegin; 02-23-2012 at 02:49 PM.
Reason: install bind-chroot as well
OK,I should have said I had no knowledge at all! Alot of what you just wrote seems greek to me. Looks like you know your stuff well though. Are there walkthroughs i could follow for this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.