Clearing your DNS cache

When DNS changes are made they occur instantly on our nameservers. However, it may be some time before your computer (or your customer's computers) see the changes. This is because every DNS record has something called a TTL (Time TLive) value. The TTL tells other DNS servers how long to cache a DNS record for before refreshing their local data - it's important because it controls the amount of DNS traffic on the internet.

Normally DNS records are set with a TTL value of 14400 (it's in seconds - so this is 4hrs), but some DNS records have a 24Hr TTL value (86400) so it can take up to a day to see the changes take effect.

The TTL delay is compounded by the fact that your operating system (Windows and Macs) both cache DNS data to reduce the number of requests they make to your ISP. On top of that, web browsers also create a local cache.

The knock on effect is that new DNS data can be delayed even longer.

Clearing Windows' DNS cache

  • Windows 7 - open a command prompt (clicking the Start button, entering cmd and pressing )
  • Windows 8 - by right clicking the Start screen, and clicking All Apps. Look for the Windows System section, and click on Command Prompt.

Enter the following command (you must be logged in as an administrator) and press the key.

ipconfig /flushdns

To make sure you are seeing the correct IP addresses for your website, you can see the contents of your local cache with:

ipconfig /displaydns 

Clearing Mac OS X DNS cache

Open the Terminal application from the Applications/Utilities folder or search for it using Spotlight. Depending on which version of Mac OSX you are running, you should type in the following commands, and press the key. You may be asked to enter an administrative username and password - do so, as this is an administrator level task.

For OSX prior to 10.5.1 (Leopard)

sudo lookupd -flushcache

Mac OSX 10.5 and 10.6 (Leopard and Snow Leopard)

sudo dscacheutil -flushcache

You can obtain a full list of all entries in the cache using this command.

sudo dscacheutil -cachedump -entries

Mac OSX 10.7 and 10.8 (Lion and Mountain Lion)

sudo killall -HUP mDNSResponder

Clearing Ubuntu/Linux DNS cache

Open the terminal application and enter this command, and press the key.

sudo /etc/init.d/nscd restart
  • nameservers, dns, cache, clearing, domain
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Can I buy a domain name together with a web hosting plan?

There are a few options to get a domain name together with your web hosting plan. *-When signing...

Can I register or transfer my domain to OBHost?

Yes, we do provide domain registration and transfer services. If you are willing to register or...

How can I transfer a domain into my account

Before initiating the transfer of a domain (e.g. .COM / .NET / .ORG) you will need to ensure that...

How do I add another domain to my Hosting Account?

To add a new domain to your existing hosting account: 1. Log into your cPanel control panel2....

Understanding Primary, Alias (or Parked), Addon and Sub domains

This article will help you to assign additional websites/domain names to your cPanel account...