Home » Refreshing internet connections (clearing the DNS cache)

Refreshing internet connections (clearing the DNS cache)

PCs, smartphones and tablets save web content and where particular websites are stored in their memory (this is called caching). Most of the time this is good because it greatly speeds up displaying the websites you use often; the same principle applies to emails. The downside is that this can mean that you don’t see changes straight-away!

Every device on the internet has an IP address, your web server might be 185.50.6.117 and your PC might be  90.255.123.456. All the boxes between your PC and the web and email server hold that cross reference between squirrelhouse.biz and 185.53.59.11 in what is called the DNS Resolver Cache. This makes for a quick connection and each box should refresh that information after so many hours. The downside is when a website and mailbox package is migrated to a new server it can mean that you don’t see the website or new mail for a few hours.

Check your DNS Resolver Cache

Where is your PC looking to find your website and mailbox?

Where should it be looking?
185.53.59.11

How to clear most of the caching

Rebooting the PC will usually do this on its own although going through this  routine is more reliable:-

  1. Shutdown fully your PC
  2. Switch the power off to your Router
  3. Wait for 60 seconds
  4. Switch the power on to your Router
  5. Start up your PC

Although this will usually work, there is another box which you can’t control that belongs to your Internet Service Provider (such as Sky, BT, TalkTalk etc). If your ISP wants to save money they can set their central DNS cache refresh time to be rather longer than you’d like. Other than doing very technical things inside your Router’s configuration there’s little you can do other than wait unfortunately.  Three days should be the absolute worst wait and generally 24 hours is more typical.

Specific Cache Cleaning

Windows PC DNS Cache

  1. Click Start icon / Windows icon (bottom left of screen) or press Windows button on keyboard and X together
  2. Enter cmd in the Start menu or Cortana search text box.
  3. Right-click Command Prompt and select Run as Administrator.
  4. In the black box type in the following command ipconfig /flushdns  and press [Enter]

    If the command succeeds, the system returns a message saying it has successfully flushed the DNS resolver cache.

Mackintosh DNS Cache

Note: you must know the Admin password

  1. Click Applications
  2. Click Utilities
  3. Click Terminal
  4. The command you use depends on the level of IOS you are running
    MacOS 10.5 and 10.6sudo dscacheutil -flushcache
    MacOS 10.7, 10.8, and 10.9sudo killall -HUP mDNSResponder
    MacOS 10.10.1, 10.10.2, and 10.10.3sudo discoveryutil mdnsflushcache
    MacOS 10.10.4 and abovesudo killall -HUP mDNSResponder

    If the command succeeds, the system does not return any output.

Outlook Mail App

Follow these instructions from Livewire.com

Thunderbird Mail App

Follow the path: Thunderbird > Tools > Options > Advanced > Network & Disk Space

Set Disk Space to 0 Mb and untick the compact folders checkbox then press [Clear Now]

iPhone

Airplane Mode completely disables all network connectivity and has the side effect of flushing the DNS cache of the iPhone

Go to Settings and turn ON Airplane Mode wait 10 seconds and then turn it off (to go back to normal with a cleared DNS cache).

Samsung / Android Phone

  1. Go to Menu
  2. Tap “Settings”
  3. Now then “Applications”
  4. Tap on “Manage Applications”
  5. Now open the “Mail” app
  6. Tap on “Clear cache”