How to: Flush DNS Settings

posted in: Guides | 0

Have you ever faced this issue where you can’t access certain websites on a particular device but when you switch to another device, it seems to work fine? Issues like these happen because the Domain Name Server (DNS) settings on that particular device is incorrect/out-of-date.

How did the DNS settings become incorrect or out-of-date?

Most operating systems and DNS clients will automatically cache IP addresses and other DNS results in order to speed up subsequent requests to the same hostname. So when the cache becomes out of date, it results in browsing errors.

What’s the Solution?

The solution would be to flush your device’s DNS, in this article; we’ll look at how we can flush DNS settings for various devices.

Note: you’ll need to be an administrator of the device to do a DNS flush.

Windows

Step 1: Key in Windows + R to bring up the Run command
Step 2: Key in CMD to bring up Command Prompt
Step 3: Type in ipconfig /flushdns

Mac

Step 1: Open up terminal by searching “terminal” with Spotlight
Step 2:
For Mac OS X El Capitan (Mac OS X 10.11)
– type in sudo killall -HUP mDNSResponder

For Mac OS X Yosemite (Mac OS X 10.10)
– type in sudo discoveryutil udnsflushcaches

For Mac OS X Mavericks (Mac OS X 10.9)
– type in sudo killall -HUP mDNSResponder

For Mac OS X Mountain Lion (Mac OS X 10.8)
– type in sudo killall -HUP mDNSResponder

For Mac OS X  Lion (Mac OS X 10.7)
– type in sudo killall -HUP mDNSResponder

For Mac OS X Snow Leopard (Mac OS X 10.6)
– type in sudo dscacheutil -flushcache

For Mac OS X Leopard and below (Mac OS X 10.5.1 and below)
– type in sudo lookup -flushcache

iOS Devices

Step 1: Go to Settings
Step 2: Switch on airplane mode and wait for about 10 seconds
Step 3: Switch off airplane mode

Android Devices

Step 1: Go to settings
Step 2: Tap on Wi-Fi to turn it off. If you are using wired connection, go to Ethernet settings and turn it off as well (Just make sure both Wi-Fi and Ethernet are switched off)
Step 3: Tap on application manager and find affected application
Step 4: Tap on Force Stop and Clear Cache
Step 5: Switch on your Wi-Fi or Ethernet Connection

Leave a Reply