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.
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.
A common TTL value is 14,400 seconds (4 hours)
86,400 seconds (24 hours) are used in some records
This means that it can take up to a whole day for DNS updates to show up everywhere.
The delay can get longer because:
Your operating system stores DNS data in a cache
Your web browser has its own DNS cache
Your modem or router might store DNS results in memory
Your ISP's DNS servers might also keep records
The easiest way to clear the DNS cache is to shut everything down and then turn it back on.
Turn off your modem or router
Turn off your computer or device
Give it 2 to 3 minutes
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.
You can use public DNS resolvers instead of your ISP's DNS servers to cut down on DNS delays.
Suggested choices:
Cloudflare DNS: 1.1.1.1 and 1.0.0.1
Google DNS: 8.8.8.8 and 8.8.4.4
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.
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:
Faster searches on websites
Better privacy
DNS responses that are more up to date
Your system will use fewer old cached DNS records once it is set up.
Click Start, type CMD, and press Enter
Type the command below and hit Enter:
ipconfig /flushdnsIf it works, you'll see:
Successfully cleared the DNS Resolver CacheYou can find Terminal in Applications โ Utilities or by searching for it with Spotlight.
Run the command that works with your version of macOS:
sudo lookupd -flushcachesudo dscacheutil -flushcachesudo killall -HUP mDNSRespondersudo discoveryutil mdnsflushcachesudo killall -HUP mDNSResponderYou might be asked to type in your system password.
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.