User Tools

Site Tools


internet:dns:flush_dns_cache

Differences

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

Link to this comparison view

Next revision
Previous revision
internet:dns:flush_dns_cache [2012/08/09 14:15]
gcooper created
internet:dns:flush_dns_cache [2021/01/17 16:32] (current)
gcooper
Line 1: Line 1:
 ====== How to Flush DNS Cache ====== ====== How to Flush DNS Cache ======
 +
 +<note warning>Your (upstream) router or domain controller is likely caching DNS queries you make.  You might have to flush the DNS caches in one of those devices before you get the desired results.</note>
  
 ===== Windows ===== ===== Windows =====
Line 15: Line 17:
 ===== Linux ===== ===== Linux =====
  
-Linux doesn't cache DNS by defaultbut there are various methods in common use to make it do so.+Depending on your systemone of these might work: 
 + 
 +<file> 
 +sudo systemctl restart nscd 
 +</file> 
 + 
 +<file> 
 +sudo systemctl restart dnsmasq 
 +</file>
  
 <file> <file>
 rndc flush rndc flush
 +</file>
 +
 +===== Ubuntu =====
 +
 +<file>
 +sudo systemd-resolve --statistics
 +sudo systemd-resolve --flush-caches
 </file> </file>
internet/dns/flush_dns_cache.1344543300.txt.gz · Last modified: 2012/08/09 14:15 by gcooper