See what the world sees first
Check whether the new value has reached public resolvers before you blame your cache:
Where DNS is cached
- The browser. Browsers keep their own short cache.
- The operating system. Windows, macOS and many Linux systems run a local resolver cache.
- The router. Many home routers cache answers for the devices behind them.
- Your provider's resolver, or a public one such as 1.1.1.1 or 8.8.8.8. This cache is shared by many users and lasts for the record's TTL.
Flushing the first three affects only you. The last one you can't flush yourself; you wait for the TTL to run out, as explained in how long DNS propagation takes.
Flush the cache on your device
Windows
ipconfig /flushdns
# or in PowerShell
Clear-DnsClientCache
View what is cached with ipconfig /displaydns.
macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux
# systemd-resolved
resolvectl flush-caches
# nscd
sudo nscd -i hosts
# dnsmasq
sudo systemctl restart dnsmasq
Which one applies depends on what your system runs. If resolvectl isn't found, you probably have no local cache to flush.
Browser
Close the browser completely and reopen it, or test in a private window. Chrome, Edge and Firefox also cache the page itself, so clear the site's cached files if the DNS is right but the page is old.
Router
Restart the router. It clears the cache and, if your provider changed something, picks up new settings.
Checking that it worked
Look the name up again from the command line (see DNS lookup commands) and compare it with the public resolvers above. If your device still returns the old value after a flush, the old value is coming from the resolver upstream, not from your machine.
Flushing doesn't speed up the internet and doesn't change anything for anyone else. Do it to see a change, not as routine maintenance.