If you just registered a domain or changed a DNS record on your domain name, you need to either wait for the dns cache to clear itself or clear your local cache to get a new name resolution.
Just know that clearing your local DNS cache does not mean it will automatically work, it usually takes up to 24-48 hours for a full global DNS propagation.
Flush DNS cache in Windows
- Open the Start Menu and start typing command prompt until you see it in the results.
- In the command prompt, type ipconfig /flushdns
You will see the following confirmation for completing this step:
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
Flush DNS cache in Linux
To flush the DNS cache in linux, you just have to restart the dns service:
For nscd
Use this command to clear NCSD DNS cache on your Linux machine:
sudo /etc/init.d/nscd restart
For dnsmasq
Use this command to clear the dnsmasq DNS cache on your Linux machine:
sudo /etc/init.d/dnsmasq restart
For Bind9 DNS
If you use BIND for DNS service, there are a few commands you can use to flush its DNS cache.
sudo /etc/init.d/named restart sudo rndc restart sudo rndc exec
Flush DNS cache in Mac OS
To flush the DNS cache in a Mac OS system, please follow the steps bellow.
Open a terminal and type the following
lookupd -flushcache
On newer version of Mac OS, you can run:
dscacheutil -flushcache
After running the command, it will clear your local DNS cache.