LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-22-2012, 04:40 PM   #1
MDCDomains
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
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.

Regards,
MDCDomains Admin
 
Old 02-22-2012, 05:03 PM   #2
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
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
 
Old 02-23-2012, 12:49 PM   #3
MDCDomains
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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?

Regardless, Thanks for the information
 
Old 02-23-2012, 02:47 PM   #4
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Here is a link that will help out:

http://blog.wains.be/2007/12/13/cent...dns-with-bind/

http://www.centos.org/docs/5/html/De...S/ch-bind.html

http://www.lamolabs.org/blog/282/how...r-on-centos-5/

These links are good, I would use the bind-chroot.

also put in the lame-servers stanza to keep the rubbish out of your log files
 
  


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
Bind DNS and Active Directory (Windows 2008) wirekof Linux - Server 3 01-04-2012 05:35 PM
How to join a server with Centos 5.2 to a Windows 2008 domain? aten Linux - Server 3 08-25-2011 02:56 AM
Bind 9.3.4 and Centos GGlinux Linux - Newbie 2 01-18-2009 07:57 PM
[SOLVED] BIND on Mandriva 2008.1 error time out riganta Linux - Server 4 06-13-2008 08:33 PM
replicating mysql on windows to mysql on linux sunethj Linux - Server 0 01-22-2007 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:03 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