Re: testing record start/end times with tinydns-get?

[email protected] (Paul Jarc) Wed, 21 Jul 2010 17:01:05 -0400
Newsgroups gmane.network.djbdns
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
"Charles Cazabon" <[email protected]> wrote:
> But how do I test my magic?  tinydns-data will happily query the cdb file, but
> I don't see how to tell it what time to to use (so it gets the proper records
> and I can test times other than "now") - is this possible?

You'd have to patch it.  tinydns-get calls respond() from tdlookup.c,
which uses tai_now() to set the timestamp to search for.  So the
change would be fairly invasive--tdlookup.c is used by tinydns as
well.

Or just run an unpatched tinydns-get from a (virtual) machine with a
clock set forward. :)


paul