> ## Content Index
> Fetch the complete content index at: https://routerhaven.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to flush DNS to fix website loading and connectivity issues
- URL: https://routerhaven.com/flush-dns-fix-website-loading/
- Published: 2026-10-15T11:24:00.000Z
- Updated: 2026-10-20T19:00:43.000Z
- Author: Caleb Renwick
- Tags: Networking

If websites are loading slowly, showing outdated content, or not loading correctly, your DNS cache might be the cause. DNS, or Domain Name System, translates website names into IP addresses so your computer can find them. Flushing the DNS clears this stored cache of addresses, forcing your computer to request fresh information from DNS servers. This often fixes loading and connectivity problems caused by outdated or corrupted DNS data.

## What does flushing DNS mean and why should I do it?

Every time you visit a website, your computer contacts a DNS server to translate the site’s name (like example.com) into an IP address. To speed up this process, your device stores these translations in a DNS cache. Over time, entries in this cache may become outdated if the website changes its IP address, or corrupted due to network glitches. This can result in your browser loading the wrong page, failing to connect, or showing errors.

Flushing the DNS means clearing this cache. When you do this, your computer removes all stored addresses and asks DNS servers for updated information on the next website visit. This fixes issues like loading old versions of websites, connection failures, or redirect loops caused by incorrect DNS data.

## How do I flush DNS on Windows?

To flush the DNS cache on Windows 10 or 11, use the Command Prompt with administrator rights.

1. Open the Start menu, type "cmd", then right-click on Command Prompt and select "Run as administrator".
2. In the Command Prompt window, type the following command exactly and press Enter:

```cmd
ipconfig /flushdns
```

Command Prompt

1. You should see a message confirming the DNS Resolver Cache was successfully flushed. This means your DNS cache is cleared, and your system will request fresh DNS information when you browse next.

![A Windows 11 computer screen showing the command prompt window used to flush DNS cache.](https://tse1.mm.bing.net/th?q=Windows%2011%20computer%20running%20command%20prompt%20to%20flush%20DNS%20cache&w=624&h=352&c=7)

## How do I flush DNS on macOS?

Flushing the DNS cache on macOS depends on your system version because Apple has changed the command over time.

1. Open the Terminal app (found in Applications > Utilities).
2. Run the command that matches your macOS version:
- For macOS Big Sur (11) and later, including Monterey and Ventura:

```bash
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
```

Terminal

- For macOS Catalina (10.15) and Mojave (10.14):

```bash
sudo killall -HUP mDNSResponder
```

Terminal

- For macOS Yosemite (10.10) through High Sierra (10.13):

```bash
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
```

Terminal

1. Enter your administrator password when prompted. There is no confirmation message, but the DNS cache is cleared when the command finishes. Your Mac will get fresh DNS records when you browse next.

![A macOS laptop screen displaying the terminal app with a DNS flush command being entered.](https://tse1.mm.bing.net/th?q=macOS%20laptop%20terminal%20app%20running%20DNS%20flush%20command&w=624&h=352&c=7)

## How do I flush DNS on Linux?

Linux systems vary depending on which DNS service they use. Here are common methods:

1. If your system uses systemd-resolved (common on Ubuntu 18.04 and later), use the current command below. Older releases used the systemd-resolve name instead:

```bash
sudo resolvectl flush-caches
```

Linux shell

1. If you use nscd (Name Service Cache Daemon):

```bash
sudo /etc/init.d/nscd restart
```

Linux shell

or

```bash
sudo systemctl restart nscd
```

Linux shell

1. For dnsmasq users:

```bash
sudo systemctl restart dnsmasq
```

Linux shell

1. If you’re unsure which service you have, restarting your network manager or rebooting your system will also clear DNS caches.

After running the right command, your system will clear its DNS cache and request updated records when needed.

## How can I confirm that the DNS cache has been flushed?

There’s no universal command to view DNS cache contents directly, but you can verify flushing in these ways:

- On Windows, the message after running `ipconfig /flushdns` confirms success.
- On macOS and Linux, since commands usually don’t confirm, test by visiting a website that recently changed its IP address. If it loads correctly, the cache was likely cleared.
- You can also use command-line tools like `nslookup` or `dig` before and after flushing DNS to check if the IP addresses they resolve have changed.

Keep in mind browsers often keep their own DNS caches. Clearing your browser’s cache or restarting it may be necessary to see the effect of flushing your system’s DNS cache.

## When should I flush DNS and what if it doesn’t fix my problem?

Flush your DNS cache if websites load incorrectly, redirect to the wrong page, or fail to load while your internet connection is working. This often happens after a website changes its IP address or when you experience intermittent connectivity issues.

If flushing the DNS cache doesn’t fix the problem, try these steps:

- Restart your router or modem to refresh your network connection.
- Clear your browser’s cache, which might hold outdated data unrelated to DNS.
- Check that your network settings use reliable DNS servers.
- Temporarily disable VPNs or security software that could interfere with DNS.
- Try accessing the website from another device or network to see if the problem is local.

Sometimes, the issue is with the website’s server or your internet provider, which flushing DNS won’t resolve.

## Conclusion

Flushing your DNS cache is a simple way to fix many common browsing and connection problems caused by outdated or corrupted DNS data. By following the instructions for your operating system, you clear the cache and force your device to get updated website addresses. If the problem continues, use other network troubleshooting steps or contact your provider. This straightforward action often restores normal web access without complex changes.

## Frequently Asked Questions

### Does flushing DNS delete my browsing history?

No. Flushing DNS only clears stored website address translations. Your browsing history and saved browser data remain unchanged.

### How often should I flush my DNS cache?

There’s no set schedule. Flush your DNS only when you experience website loading problems or suspect outdated DNS information.

### Can flushing DNS speed up my internet?

Flushing DNS doesn’t speed up your internet connection itself. It can fix errors or delays caused by bad cached DNS entries, which may make browsing feel faster.