Query Unbound cache - Get hosts by IP address

Hi,

would it be possible to query Unbound instance cache, to return all
hosts that has been resolved to specific IPv4 or IPv6 address ?

Querying by specifying range of IP (ip + mask) is not a requirement, but
would possibly be handy too.

Thank you
Best Regards
Marek Sebera

Marek Sebera via Unbound-users writes:

> Hi,
>
> would it be possible to query Unbound instance cache, to return all
> hosts that has been resolved to specific IPv4 or IPv6 address ?
>

unbound-control dump_cache | 'some script you need to write'

  jaap

“python:” clause plugin might work also to inspect the cache.

  • Eric