Hi,
I was wondering whether libunbound/ldns allows to get access to all the DNS responses of a particular resolve request such that those responses can be stored to disk and later loaded up again such that an offline resolve function can be called.
Thanks,
Maik
unbound-control allows you to save and load the cache, so you can do it for a query on a fresh new cache. Not sure if you can really do it for a query using libunbound
if not, this is something 'dnstap' was designed to assist with.
Thanks for the pointer, though it seems like it's meant for continuous logging through an external daemon. I'm looking for something that's usable from a library. And ideally something supports the opposite direction as well, so taking the dumped responses and using it later to resolve and DNSSEC-validate a request offline.
That looks interesting. If I understood correctly, unbound-control sends messages to an unbound daemon, which in turn is based on libunbound. So if the daemon can dump and load a cache, I should be able to do the same myself somehow through the libunbound API, right?