Introduction
DNS propagation can take a few hours, if not days, to spread. You can force your systems to update DNS records manually, updating your local DNS cache.
Procedure
Sometimes there is an issue with your DNS resolvers caching your old IP. When you're trying to go to the domain, it's pulling up an old IP address instead of looking for a new one and finding the correct record. So, to expedite this very common problem of cached DNS, please do the following steps.
Microsoft Windows
- Close your application (e.g. browser or email).
- Click the Start orb then click All Programs / Accessories, and look for the Command Prompt. Be sure to right-click on Command Prompt and choose "Run as Administrator". When the black screen appears
- Type the following command and hit enter.
ipconfig /flushdns
Restart your application (e.g. browser or email).
Mac OSX
- Navigate to your Applications folder, open Utilities, and double-click on Terminal. Type the following command and hit enter.
sudo dscacheutil -flushcache
- After dscacheutil runs, you need to force the mDNSResponder service to reload:
sudo killall -HUP mDNSResponder
Linux
Please note, that different distributions of Linux may have slightly different commands due One of the commands below will probably work.
- Open up a root terminal. Type the following command and hit enter.
/etc/init.d/nscd restart
- You may need to use sudo depending on your installation:
sudo /etc/init.d/nscd restart
- Some distributions support these commands:
sudo /etc/init.d/dns-clean start
sudo service nscd restart
- Some installations may have NSCD located in another directory, like the following example. You may need to locate where it is installed to be able to execute the correct command.
/etc/rc.d/init.d/nscd restart
- Systemd-based systems use systemctl to restart the service:
systemctl restart nscd
- You may need to use sudo depending on your installation:
- Restart your web browser or other application using the old IP.
Comments
0 comments
Article is closed for comments.