Do all browsed sites from any browser get into DNS cache? How long is the cache stored, does it have a limit on the number of cached IP addresses? Could data retrieval in this way serve as a history of the websites visited?

Checked DNS cache so . The results did not have a site that looked yesterday. After visiting this site, I checked the DNS cache again, it appeared there. Hence the questions.

    1 answer 1

    1. Yes, all fall.
    2. Each entry has a "Lifetime" ("Lifetime"). This value defines the time in seconds that the entry will be in the cache. So this entry will be in ipconfig /displaydns . Entries from the hosts are in it constantly with the maximum lifetime.
    3. The table size is contained in the following registry directives: CacheHashTableBucketSize and CacheHashTableSize
    4. In this way, you can collect some statistics, but everything will depend very much on the system policy and on the registry variables and on the DNS record lifetime. Those. essentially very, very subjective assessment of the history of visits. Is that to collect it very, very often (1-5 seconds, because at the entrance to the same mail.ru in the cache records are added and with a lifetime of 4s). Moreover, I believe that the DNS-cache is cleared when the computer is restarted.