[bind10-dev] custom update tool for use in DDNS tests
Jelte Jansen
jelte at isc.org
Thu Jul 12 11:01:56 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/12/2012 12:43 PM, Shane Kerr wrote:
>
> My thinking is that you can only ever have 1 zone, so just make
> that a command to set a zone.
>
and that thinking is why we need a separate tool now for testing; only
one zone is allowed in an update packet, but we need to test that we
actually formerr if there are more :) (so in 'debug mode' we do need
to be able to set more of them)
> Further, I find it annoying in nsupdate to have to specify
> "update" before "add/delete". (Actually it might make some sense to
> make the prerequisite commands also separate commands, but for some
> reason that never annoys me.)
>
i suspect that the biggest gripe with nsupdate is that it has no
readline support :) (but see below)
>
>> Regarding evolving this into a new nsupdate later, the above
>> could be an 'expert' session, where 'normal' operation would have
>> something similar to the original syntax (e.g. when you start it
>> with -x or something).
>
> Except that everybody hates the nsupdate syntax. :)
>
To extend the popular joke about programming languages, I guess there
are two types of tools too; the one that everybody hates, and the one
that nobody uses ;)
> Maybe what we want is to treat the update as a 1st order object,
> and allow you to modify the components on each section directly:
>
<snip>
>> show add www.example.org a 192.0.2.2 show delete example.org 1H
>> IN A 192.0.2.1 update move u4 up update move u4 up
>
> Clearly out of scope for this tool, but just thinking about it. :)
>
out of scope *for now* ;)
And while we're dreaming, if the tool could somehow magically retrieve
the zone data, there would be much more fun to be had (tab-completion,
zone inspection, make TTL optional for rrset add, inspect what the
changes would do, etc.). But there are a lot of big 'what ifs' there :p
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/+rqQACgkQ4nZCKsdOncVBhACZARcmrr/1TSOzkXWQsp0BJcut
7OoAoLYberLHOTTdD409K3Su1Dr6T3FT
=MTGO
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list