[olug] setting up a mirror (slave?) DNS server?
Ryan Stille
ryan at cfwebtools.com
Wed Sep 20 21:50:44 UTC 2006
Sean Kelly wrote:
> On Wed, Sep 20, 2006 at 04:12:23PM -0500, Ryan Stille wrote:
>
>> How many zones? Probably around 150 right now. Adding 1-2 a month.
>>
> Holy cow. What are you doing?
>
We do DNS for some client sites.
> Why bother copying over the zone files at all? Ship over named.conf every
> 15 minutes or so. If the named.conf shipped over differs from the one that
> is already there, put the new one in place and have BIND reload. It will
> then go out and ask for a zone transfer for all the zones it is supposed to
> secondary for. Okay, you can't do a direct named.conf copy, but you can
> make a little perl script to look for
> zone "xyzzy.com" {
> lines and replace them with equivelent blocks for a secondary server.
>
> This allows BIND to do incremental transfers and everything that it'd
> normally do, since you won't be mashing over its zone files and journals.
>
>
>> Not sure how well this will work, because I'm sure the new server will be
>> running a more recent version of BIND. A > better way may be to have a perl script
>> scan through the named.conf file on the primary and generate a proper named.conf
>> file to FTP to the new > server.
>>
>
> Right. And have that generated named.conf have proper zone {} blocks for a
> secondary server. Then let BIND take care of the rest.
>
>
What will happen when the primary is down, so we alias its IP on this
new server? In that case the 'master' server for each zone will be
itself. Might this cause problems?
-Ryan
More information about the OLUG
mailing list