User Tools

Site Tools


ubuntu:networking:dns:flush_dns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:networking:dns:flush_dns [2021/01/10 20:49] – created peterubuntu: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
 +</code>
 +
 +returns:
 +
 +<code bash>
 +DNSSEC supported by current servers: no
 +
 +Transactions               
 +Current Transactions: 0    
 +  Total Transactions: 3554 
 +                           
 +Cache                      
 +  Current Cache Size: 0    
 +          Cache Hits: 13   
 +        Cache Misses: 84731
 +                           
 +DNSSEC Verdicts            
 +              Secure: 0    
 +            Insecure: 0    
 +               Bogus: 0    
 +       Indeterminate: 0    
 +
 +</code>
 +
 +----
 +
 +===== Flush the cache =====
 +
 +<code bash>
 +resolvectl flush-caches
 +</code>
 +
 +<WRAP info>
 +**NOTE:** This should reduce the Cache Size entry reset to 0.
 +
 +  * This works for both Ubuntu Server and Ubuntu Desktop.
 +
 +</WRAP>
 +
 +----
 +
 +===== The Older Method =====
  
 <code bash> <code bash>
Line 33: Line 80:
        Indeterminate: 0             Indeterminate: 0     
 </code> </code>
 +
 +----
 +
 +
ubuntu/networking/dns/flush_dns.1610311797.txt.gz · Last modified: 2021/01/10 20:49 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki