ubuntu:networking:dns:flush_dns
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:networking:dns:flush_dns [2021/01/10 20:49] – created peter | ubuntu:networking:dns:flush_dns [2022/06/30 22:00] (current) – 45.89.242.204 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Networking - DNS - Flush DNS ====== | ====== Ubuntu - Networking - DNS - Flush DNS ====== | ||
+ | |||
+ | ===== View the statistics of our DNS cache ===== | ||
+ | |||
+ | <code bash> | ||
+ | resolvectl statistics | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | DNSSEC supported by current servers: no | ||
+ | |||
+ | Transactions | ||
+ | Current Transactions: | ||
+ | Total Transactions: | ||
+ | |||
+ | Cache | ||
+ | Current Cache Size: 0 | ||
+ | Cache Hits: 13 | ||
+ | Cache Misses: 84731 | ||
+ | |||
+ | DNSSEC Verdicts | ||
+ | Secure: 0 | ||
+ | Insecure: 0 | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Flush the cache ===== | ||
+ | |||
+ | <code bash> | ||
+ | resolvectl flush-caches | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** This should reduce the Cache Size entry reset to 0. | ||
+ | |||
+ | * This works for both Ubuntu Server and Ubuntu Desktop. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== The Older Method ===== | ||
<code bash> | <code bash> | ||
Line 33: | Line 80: | ||
| | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ |
ubuntu/networking/dns/flush_dns.1610311797.txt.gz · Last modified: 2021/01/10 20:49 by peter