Reset DNS cache

Clear DNS resolver cache on popular systems and browsers

When DNS records change, your device or browser may still use cached results. Clearing DNS cache helps fetch fresh DNS data.

Windows 10 / 11

  1. Open Command Prompt as Administrator.
  2. Run: ipconfig /flushdns
  3. Alternatively (PowerShell): Clear-DnsClientCache

macOS (Big Sur, Monterey, Ventura, Sonoma)

  1. Open Terminal.
  2. Run: sudo dscacheutil -flushcache and then sudo killall -HUP mDNSResponder
  3. Enter your password if prompted.

Linux

  • systemd‑resolved: sudo resolvectl flush-caches (or sudo systemd-resolve --flush-caches)
  • nscd: sudo service nscd restart (or sudo systemctl restart nscd)
  • dnsmasq: sudo systemctl restart dnsmasq
  • NetworkManager: sudo systemctl reload NetworkManager (or sudo systemctl restart NetworkManager)

Browsers

  • Google Chrome / Microsoft Edge: open chrome://net-internals/#dns or edge://net-internals/#dns and click “Clear host cache”.
  • Mozilla Firefox: open about:networking#dns and click “Clear DNS Cache”.
  • Close and reopen the browser tabs after clearing.
Some ISPs and recursive resolvers also cache DNS. If you still see old results, try querying the domain’s authoritative nameserver or wait until external caches expire (respect TTL).