ubuntu:networking:dns:check_dns_cache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:networking:dns:check_dns_cache [2021/01/13 10:33] – peter | ubuntu:networking:dns:check_dns_cache [2021/01/13 11:38] (current) – peter | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code bash> | <code bash> | ||
+ | resolvectl statistics | ||
+ | |||
+ | or | ||
+ | |||
systemd-resolve --statistics | systemd-resolve --statistics | ||
</ | </ | ||
Line 30: | Line 34: | ||
If it's 0, you just flushed the DNS cache. | If it's 0, you just flushed the DNS cache. | ||
+ | |||
+ | The cache can store up to 4096 DNS responses for up to 2 hours, so don’t expect to see a massive number listed as the current cache size. | ||
+ | |||
+ | The DNS cache can’t grow to more than 420 kB when used to its fullest; so no concern about memory usage. | ||
</ | </ | ||
ubuntu/networking/dns/check_dns_cache.1610534012.txt.gz · Last modified: 2021/01/13 10:33 by peter