LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-11-2006, 05:14 AM   #1
ftw
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Mirror DNS Zones/named (4 different servers/locations)


This is my current setup. Each code block is the SAME server

Code:
ns1 - 216.240.x.x - LAMP = Linux,Apache,MySql,PHP
ns2 - 216.240.x.x
Code:
ns3 - 216.152.x.x - LAMP = Linux,Apache,MySql,PHP
ns4 - 216.152.x.x
Code:
ns5 - 64.94.x.x - LAMP = Linux,Apache,MySql,PHP
ns6 - 64.94.x.x
Code:
ns7 - 64.70.x.x - LAMP = Linux,Apache,MySql,PHP
ns8 - 64.70.x.x
I would like to be able to make a MAIN dns server say dns1 where all records are saved and synced with the rest of the servers. making the resolver DNS inst the problem its the syncing the zone files "/var/named/"

Can any one suggest an easy workout for this?
 
Old 03-12-2006, 09:20 AM   #2
duckrain
LQ Newbie
 
Registered: Dec 2005
Distribution: Gentoo,Debian
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by ftw
Can any one suggest an easy workout for this?
Let Bind do the work

I think what you want is a master/slave-setup. One Server (the Master) has the original Zonefiles, that get updated by hand/whatever.
the other Servers (Slaves) get notified by the master on updates and initiate a Zone transfer from the master to themself.

All you need to do is declare all relevant Zones (e.g. Domains you own) on all servers, on the Master Server as Master Zones, on the Slave Servers as Slave Zones.
And of course all Servers must exist as NS-records in the Zones.

Here is an example (more or less directly from the Bind-Documentation):
Code:
zone "example.com" {
     type master;
     file "example.com.db";
     // IP addresses of slave servers allowed to transfer example.com
     allow-transfer {
          192.168.4.14;
          192.168.5.53;
     };
Code:
// We are a slave server for eng.example.com
zone "example.com" {
     type slave;
     file "example.com.db";
     // IP address of example.com master server
     masters { 192.168.4.12; };
};
HTH
 
Old 03-13-2006, 09:36 AM   #3
ftw
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
That would take about 2 weeks to complete, and that's if I'm lucky!

Every server has there set of users and websites, the users add and remove sites all the time so it will be hard for the main DNS to stay up2date.

I'm going to take a look at rsync to see if its possible to use that.

Code:
Main DNS__dns1
     |
     |
     |__ server1-ns1
     |__ server2-ns2
     |__ server3-ns3
     |__ server4-ns4
     |__ serverx-nsx
That's pretty close to what i wish to make, Any thoughts? I'm gonna go study up on rsync now.

Last edited by ftw; 03-13-2006 at 10:02 AM.
 
Old 03-13-2006, 03:49 PM   #4
duckrain
LQ Newbie
 
Registered: Dec 2005
Distribution: Gentoo,Debian
Posts: 3

Rep: Reputation: 0
ah, so you have added and removed zones all the time over all the servers - ok, thats a though one...

maybe some kind of a database backend that is used by all dns servers?
(just letting my fantasy play)
 
Old 03-15-2006, 05:28 AM   #5
ftw
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Ill figure it out, soon then post it here. I'm SURE Google has it!

I think rsync will do it, I have to setup the Keys to log in via root on all servers (i think) then have the main DNS server download the zone files.
 
Old 03-15-2006, 07:41 AM   #6
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Another option, provided that the users all have access to the master, is to let the users edit the zone files on the master server, make a cron job to copy them to the proper location and set the proper owner on them, then reload them so that they can propogate out to the slaves.

Not the most secure thing to do, but it's just a simple option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trying to setup dns zones - bind 9.2.4 LKWPeter Linux - Networking 1 12-01-2004 03:05 PM
remove expired zones from named.conf ritesh_aladdin Linux - Networking 0 07-23-2004 05:34 AM
DNS Slave not getting zones from master tysonh04 Fedora 1 06-06-2004 05:10 PM
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read r00tnuke Red Hat 0 01-24-2004 05:08 PM
dns zones jmono Linux - Networking 3 05-19-2003 09:39 PM

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

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