Skip site navigation (1)Skip section navigation (2)
Date:      04 May 2001 16:17:32 +0100
From:      Wayne Pascoe <wayne.pascoe@realtime.co.uk>
To:        Ceri <ceri@techsupport.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Purpose of serial number in zone files (BIND)
Message-ID:  <m166fhdtyr.fsf@zaphod.realtime.co.uk>
In-Reply-To: <20010504160732.A1139@cartman.techsupport.co.uk>
References:  <m1wv7xdww5.fsf@zaphod.realtime.co.uk> <20010504163252.D50786@d9168.upc-d.chello.nl> <m1k83xdvu3.fsf@zaphod.realtime.co.uk> <20010504160732.A1139@cartman.techsupport.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Ceri <ceri@techsupport.co.uk> writes:

> Sounds interesting - how are you planning to do that ?

We've got 2 options at the moment. I'm leaning towards two just
personally, because then it becomes easier to build tools for.

1. Keep authoritative master copies of all zone files in CVS. When
changing a zone file, check the file out of cvs (locked read only),
change it, check it back in, and then propogate the new file to all
servers using scp.

This is painful, because we are still dealing with actual zone
files. More human intervention. This would have been ok when we only
had a few domains. Now, it's a pain.

2. Option 2. Maintain a database with one table per zone file. Table
contains several kinds of record. Status record (Changed, Unchanged,
New). Host record (FQDN, TYPE (CNAME, A, NS, MX), IP), serial_num

Once an hour all the servers query the database and rebuild all zone
files that have changed since last check. Flags are then set back to
unchanged. Also creates zone files and entries in the config table for
all new zones. If the zone is new, then named is restarted. If a zone
has changed, named is hupped. If no change, then named keeps ticking.

That's the plan. Now to implement. Then to fix :)

-- 
- Wayne Pascoe 
E-mail: wayne.pascoe@realtime.co.uk
Phone : +44 (0) 20 7544 4668
Mobile: +44 (0) 788 431 1675

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m166fhdtyr.fsf>