Re: testing record start/end times with tinydns-get?
"Charles Cazabon" <[email protected]> 21 Jul 2010 15:34:00 -0600
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
Paul Jarc <[email protected]> wrote: > "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. Thanks, Paul - I was coming to the same conclusion from my reading of tdlookup. I'm glad I didn't miss something obvious. > Or just run an unpatched tinydns-get from a (virtual) machine with a > clock set forward. :) Indeed ;) Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------