On Fri, Nov 21, 2008 at 12:06 AM, Janek <janek_at_cemokom.eu> wrote:
> Thanks,
> I think we'll use the precommit hook for
> * checking of dns records validity (i didn't mentioned that before, butdo
> that)
> * comparation of serial number with previous version
>
> or
>
> * in place of comparation we'll autoincrement the serial. (i've read in the
> O'Reilly, it's not a good idea, but ...)
>
> Dne 20.11.2008 18:53, Andy Levy napsal(a):
>
> On Thu, Nov 20, 2008 at 12:47, Larry Shatzer, Jr. <larrys_at_gmail.com> wrote:
>
>
> On Thu, Nov 20, 2008 at 10:33 AM, Janek <janek_at_cemokom.eu> wrote:
>
>
> We are using an svn repositary for managing a large dns server.
> Now, anybody who needs commit any changes of a zone file, also needs to
> increment a serial number of zone file,
> so the changes are accepted by dns server.
>
> Is there any possibility to automate this action? It is similar to
> including $revision$ but there is no place for anything else but the number.
>
>
> Create a pre-commit hook that checks the old and new file, and if the
> serial is not incremented reject it.
>
>
> What about doing it on the checkout/update side when the file goes out
> to the DNS server? After the update/checkout is complete, search for
> $Revision: 123$ and replace with 123? Rather than run a straight svn
> co/up/export, write a wrapper script to do the svn operation then fix
> the keyword. Presumably one won't be editing right on the DNS server
> and committing back to the repository.
>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional
> commands, e-mail: users-help_at_subversion.tigris.org
use the repositories revision number AS the DNS serial number - use
'svnlook youngest'. So long as it is an increase you should be OK -
the list of serial numbers can have discontinuities. A post commit
hook can update a zone file, maybe an include that is not under
version control? I'd have to check on the zone file format to be sure
.... if you can live with any change to one zone looking like a bump
for all zones.
I like the Idea though - looks like time to revisit our DNS servers. :) thx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-22 10:50:01 CET