How to Clear Your DNS Cache

Flushing your computer's DNS cache is a quick and easy way to fix problems with websites not loading, DNS propagation delays, or mistakes that happen after you change your domain or hosting. Cyberin's guide explains how DNS caching works and shows you how to clear it on both Windows and Mac computers.

What Is DNS Cache?

When you make changes to DNS, like changing nameservers or DNS records, they take effect right away on Cyberin's nameservers. But it might take a while for your computer or your visitors to see those changes.

This delay is due to the fact that every DNS record has a Time To Live (TTL) value. TTL tells other DNS servers how long they should keep a DNS record in their cache before asking for a new one.

This means that it can take up to a whole day for DNS updates to show up everywhere.

The delay can get longer because:

The easiest way to clear the DNS cache is to shut everything down and then turn it back on.

  1. Turn off your modem or router

  2. Turn off your computer or device

  3. Give it 2 to 3 minutes

  4. First, restart the router, and then your device

Most local DNS caches are cleared by this. But if your ISP uses DNS proxy caching, it might still send you old records.

Donโ€™t Let Your ISP Cache DNS (Best Practice)

You can use public DNS resolvers instead of your ISP's DNS servers to cut down on DNS delays.

Suggested choices:

You can set your own DNS servers on most modern routers. Setting up DNS at the router level makes sure that all connected devices use the same fast and reliable DNS service without having to set it up separately.

How to Use the 1.1.1.1 DNS Service

Another good way to speed up DNS resolution and cut down on caching problems is to switch to the 1.1.1.1 DNS service.

Some benefits are:

Your system will use fewer old cached DNS records once it is set up.

How to Clear Your Device's DNS Cache in Windows

  1. Click Start, type CMD, and press Enter

  2. Type the command below and hit Enter:

ipconfig /flushdns

If it works, you'll see:

Successfully cleared the DNS Resolver Cache

How to Clear DNS Cache on macOS

You can find Terminal in Applications โ†’ Utilities or by searching for it with Spotlight.

Run the command that works with your version of macOS:

Before Mac OS X 10.5.1 (Leopard)

sudo lookupd -flushcache

Mac OS X 10.5 and 10.6 (Leopard and Snow Leopard)

sudo dscacheutil -flushcache

Mac OS X 10.7 to 10.9 (Lion, Mountain Lion, Mavericks)

sudo killall -HUP mDNSResponder

OS X 10.10 to 10.10.3 (Yosemite)

sudo discoveryutil mdnsflushcache

OS X 10.10.4 and later (El Capitan, Sierra, High Sierra, Mojave, Catalina, Big Sur, Monterey, Ventura)

sudo killall -HUP mDNSResponder

You might be asked to type in your system password.

Are You Still Having Problems?

Sometimes, DNS propagation takes longer because of caching outside of your control. If you've done everything above and are still having problems, our team is here to help.

๐Ÿ‘‰ If you have questions about DNS, hosting, or domains, get in touch with Cyberin Support. We're always happy to help you make sure your website works well.