Skip to content
HT-Logo
  • DNS
    • All Records
    • DNS Lookup
    • DNS Reverse
    • DNS Servers
    • MTA-STS
  • Domain
    • ARIN Lookup
    • ASN Lookup
  • Email
    • BIMI Lookup
    • Blacklist Check
    • DKIM Lookup
    • DMARC Lookup
    • Email Deliverability
  • Network
    • IP Lookup
    • Ping Test
    • TCP Lookup
  • Registrar
    • Domain Expiry Check
    • Domain Health
    • Domain Info
    • Domain Lookup
    • WHOIS
  • SMTP
    • Service Lookup
    • SMTP Test
  • Web
    • HTTP Lookup
    • HTTPS Lookup
    • My IP address
  • All Tools
  • Pricing
  • Blog
  • Contact
Login

Flush DNS: The Complete Guide to Clearing Your DNS Cache

Flush DNS Clearing Your DNS Cache
  • Posted on November 20, 2025
  • In DNS

Flushing DNS is an essential network maintenance task that ensures your device accesses the most up-to-date domain information. Outdated DNS records in your cache can lead to issues such as slow website loading, connection errors, and the inability to reach recently updated websites. This guide covers how to flush DNS on Windows, macOS, Linux, and mobile devices, provides troubleshooting tips, discusses advanced methods, and explains public DNS cache clearing. We’ll also show you how HasheTools can simplify your DNS management.

What Is Flushing DNS?

When you visit a website, your computer performs a DNS lookup to translate a domain name (like example.com) into an IP address. Your system stores this information locally in a DNS cache to speed up subsequent visits. Over time, cached entries can become outdated, causing connectivity issues. Flushing DNS clears these cached records and forces your system to fetch fresh DNS information.

Key Terms:

  • DNS Cache: Temporary storage of domain-to-IP mappings.
  • TTL (Time-to-Live): Duration a DNS record remains in cache.
  • Flush DNS / Clear DNS Cache / Reset DNS Cache: Different terms for the same process.

Why You Should Flush DNS

Flushing your DNS cache resolves several common network problems:

  1. Accessing Updated Websites: When a website changes servers or IP addresses, your cached DNS may point to the old location.
  2. Fixing Connection Errors: Outdated DNS records can cause 404 Not Found errors or failed connections.
  3. Speed & Performance: Connecting to a closer or updated server can improve load times.
  4. Security: Removing cached DNS entries helps prevent DNS spoofing or cache poisoning attacks.
  5. Network Troubleshooting: Clearing DNS is often the first step in diagnosing internet issues.

How to Flush DNS: Step-by-Step

Windows

Flushing DNS on Windows depends on your version. All commands require administrator privileges.

Windows 11 & 10

  1. Right-click the Start menu → select Windows Terminal (Admin) or Command Prompt (Admin).
  2. Type: ipconfig /flushdns
  3. Press Enter. You’ll see: “Successfully flushed the DNS Resolver Cache”
  4. Type exit to close the terminal.

Additional commands for network reset:

ipconfig /release
ipconfig /renew

Windows 8 / 8.1

  1. Press Windows + X → select Command Prompt (Admin).
  2. Run ipconfig /flushdns.

Windows 7 / Vista

  1. Start → All Programs → Accessories → Right-click Command Prompt → Run as Administrator.
  2. Run ipconfig /flushdns.

Windows XP / 2000 / NT

  1. Start → Run → type cmd.exe → Enter.
  2. Run ipconfig /flushdns.

macOS and Mac OS X

Open Terminal from Applications > Utilities and run the appropriate command for your version:

macOS Version Command
macOS 12 (Monterey), 11 (Big Sur), 10.15 (Catalina) sudo killall -HUP mDNSResponder
macOS 10.14 (Mojave) sudo killall -HUP mDNSResponder
macOS 10.13 – 10.12 (High Sierra, Sierra) sudo killall -HUP mDNSResponder
Mac OS X 10.11 (El Capitan) sudo killall -HUP mDNSResponder
Mac OS X 10.10 (Yosemite) sudo discoveryutil udnsflushcaches
Mac OS X 10.6 (Snow Leopard) sudo dscacheutil -flushcache
Mac OS X 10.5 and below sudo lookupd -flushcache

Linux

Linux DNS cache commands depend on the service used:

  • systemd-resolve (Ubuntu/Debian): sudo systemd-resolve --flush-caches
  • NSCD: sudo /etc/init.d/nscd restart
  • BIND: sudo rndc flush

Mobile Devices

  • iOS: Restart your device or toggle Airplane Mode.
  • Android: Restart your device or use network reset options.

Alternative Ways to Flush DNS

  1. Restart Your Device: Easiest method if you lack admin privileges.
  2. Reset Network Connection: Reconnect WiFi or unplug/plug Ethernet.
  3. Change DNS Server: Switching to a public DNS like Google 8.8.8.8 or Cloudflare 1.1.1.1 automatically refreshes the cache.
  4. Modify Hosts File: Temporarily force specific domain resolution.

Clearing Public DNS Resolver Cache

  • Cloudflare 1.1.1.1: Visit their Purge Cache tool → enter domain → select record type → clear.
  • Google Public DNS 8.8.8.8: Visit Google DNS Flush Cache → enter domain → flush.
  • OpenDNS: Use OpenDNS CacheCheck → enter domain → refresh cache.

Troubleshooting DNS Issues

  • Page Not Found (404): Old cache points to deleted page; flush DNS.
  • Unable to Connect: Cached IP may be wrong; flush DNS or reset network.
  • Old Website Version: Cached data shows outdated content; flush DNS to see updates.
  • Network Performance Issues: Cached DNS might point to a distant server; flushing can optimize routing.

Using HasheTools to Check and Flush DNS

HasheTools Flush DNS Tool makes clearing DNS simple:

  • No command line needed
  • Works on Windows, macOS, Linux
  • Clears local cache instantly
  • Links to DNS propagation checker and other network diagnostic tools

Other useful HasheTools DNS tools:

  • DNS Lookup
  • Reverse DNS Lookup
  • Domain Expiry Check

FAQs About Flushing DNS

Q1: Is it safe to flush DNS?
Yes. Flushing your DNS cache is safe and does not harm your system.

Q2: Does flushing DNS improve internet speed?
It doesn’t increase raw bandwidth, but it can resolve slow access due to outdated cached records.

Q3: How often should I flush DNS?
Only when you encounter connectivity issues, outdated content, or network changes.

Q4: Can I flush DNS without admin access?
Yes, by restarting your device or using the HasheTools online tool.

Q5: Why am I still seeing the old website after flushing DNS?
Your browser cache may still hold old content; clear the browser cache as well.

Pro Tips

  • Combine flush DNS with ipconfig /release and ipconfig /renew for a complete network reset.
  • Use public DNS servers for faster and more reliable resolution.
  • Keep a regular maintenance schedule for servers and DNS settings to avoid cache issues.

Conclusion

Flushing DNS is a critical step in network maintenance, troubleshooting, and ensuring up-to-date website access. With step-by-step instructions for Windows, macOS, Linux, and mobile devices, along with HasheTools online tools, you can maintain optimal DNS performance and avoid connectivity problems.

Share with your friends
Recent Posts
Google.com IP Address
DNS

Google.com IP Address: Find Google Server IPs (IPv4 & IPv6)

January 30, 2026
DNS Records for Google.com
DNS

DNS Records for Google.com: Complete Guide (NSLookup & DNS Lookup)

January 30, 2026
Reverse IP Lookup
Featured

Reverse IP Lookup: Find Domains Hosted on an IP Address Easily

January 29, 2026
Website to IP Lookup
DNS

Website to IP Lookup: How to Find IP Address of Any Website

January 26, 2026
Blog Categories
Blog Archives
Archives
DNS Tools
  • All Records
  • DNS Lookup
  • DNS Reverse
  • DNS Servers
  • MTA-STS
Domain Tools
  • ARIN Lookup
  • ASN Lookup
Email Tools
  • BIMI Lookup
  • Blacklist Check
  • DKIM Lookup
  • DMARC Lookup
  • Email Deliverability
Network Tools
  • IP Lookup
  • Ping Test
  • TCP Lookup
Registrar Tools
  • Domain Expiry Check
  • Domain Health
  • Domain Info
  • Domain Lookup
  • WHOIS
SMTP Tools
  • Service Lookup
  • SMTP Test
Web Tools
  • HTTP Lookup
  • HTTPS Lookup
  • My IP address
Your IP is: 51.161.15.69
  • About
  • Contact
  • Terms & Conditions
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
  • Refund Policy

© Copyright 2025, HasheTools, All rights reserved. | A Product of Hashe Computer Solutions (Pvt) Ltd.

HT-Logo
  • DNS
    • All Records
    • DNS Lookup
    • DNS Reverse
    • DNS Servers
    • MTA-STS
  • Domain
    • ARIN Lookup
    • ASN Lookup
  • Email
    • BIMI Lookup
    • Blacklist Check
    • DKIM Lookup
    • DMARC Lookup
    • Email Deliverability
  • Network
    • IP Lookup
    • Ping Test
    • TCP Lookup
  • Registrar
    • Domain Expiry Check
    • Domain Health
    • Domain Info
    • Domain Lookup
    • WHOIS
  • SMTP
    • Service Lookup
    • SMTP Test
  • Web
    • HTTP Lookup
    • HTTPS Lookup
    • My IP address
  • All Tools
  • Pricing
  • Contact
Login