Cache Snooping


DNS cache snooping is when someone queries a DNS server in order to find out (snoop) if the DNS server has a specific DNS record cached, and thereby deduce if the DNS server’s owner (or its users) have recently visited a specific site.

This may reveal information about the DNS server’s owner, such as what vendor, bank, service provider, etc. they use. Especially if this is confirmed (snooped) multiple times over a period.

This method could even be used to gather statistical information - for example at what time does the DNS server’s owner typically access his net bank etc. The cached DNS record’s remaining TTL value can provide very accurate data for this.

Real case abuse

Figure out which sites users on a network are accessing. Create more targeted phishing/social engineering attacks.


Name Description Language
dns-cache-snoop Performs DNS cache snooping against a DNS server Nmap script



  • DNS caches should only be allowed to be access by local users or child caches.
  • Non-authoritative requests to DNS caches should not be allowed.
  • Add entropy to DNS caches or DNS servers when giving out the initial TTL for a given record.


What is “DNS cache snooping” and how do I prevent it -

Microsoft DNS Server vulnerability to DNS Server Cache snooping -

DNS Cache Snooping paper -