Vimzaa Knowledgebase
  • Getting Started
  • Virtual Private Servers
    • What is Virtual Private Server
    • Getting Started With Linux
      • An Introduction to the Linux Terminal
      • Basic Linux Navigation and File Management
      • An Introduction to Linux Permissions
      • An Introduction to Linux I/O Redirection
      • Linux Permissions Basics and How to Use Umask on a VPS
    • Connect with SSH
      • How to Add SSH Keys to VPS
      • SSH Essentials: Working with SSH Servers, Clients, and Keys
    • How To Edit the Sudoers File on Ubuntu and CentOS
    • Introduction to Nginx and LEMP on Ubuntu
      • Initial Server Setup with Ubuntu
      • Installing LEMP Stack on Ubuntu 14.04
      • Installing LEMP Stack on Ubuntu 16.04
    • Anti-Spam Best Practices
  • cPanel Hosting
    • Cloudflare
    • cPanel - Advanced
      • How to add and manage cron jobs / scheduled tasks in cPanel
      • How to track DNS using cPanel
      • How to create custom ‘error pages’ in cPanel
      • How to flush your local machines DNS Cache
      • How to use the Google Public DNS for faster DNS lookups
      • How to check if your domain has ‘propagated’ following DNS changes
      • Install Wildcard SSL Certificates using LetsEncrypt with cPanel
      • Correct SPF Records
      • Check processes or users with high iowait (99.99%) from Cloudlinux Logs
      • How to tune MySQL on a cPanel server with MySQLTuner
      • Clear disk space on cPanel Server by removing backups, trash etc
      • Add monitoring script to server for monitoring top, iostat etc
      • Testing your site before ‘go-live’ by editing your hosts file
    • cPanel - Domains
      • How to use the Site Publisher in cPanel
      • Managing addon domains in cPanel
      • What is the difference between addon domains and ‘alias’ domains?
      • Managing subdomains in cPanel
      • Managing domain aliases in cPanel
      • Managing domain redirects using cPanel
      • How to use the Simple Zone Editor in cPanel for managing your DNS Records
      • How to use the Zone Editor within cPanel to manage your DNS records
      • How to redirect all domain ‘alias’ to the main domain using cPanel
      • How to enable Cloudflare on your cPanel account
      • How to check what nameservers a domain is using
      • How to create Custom Nameservers / Vanity Nameservers
      • How do I transfer a domain name to Vimzaa?
    • cPanel - Managing Databases
      • Managing a MySQL Database in cPanel with phpMyAdmin
      • Manage MySQL Database in cPanel
      • Simplified database creation with the cPanel MySQL Wizard
      • Managing MySQL databases remotely using ‘Remote MySQL’ in cPanel
    • cPanel - Managing Email Accounts
      • Managing email accounts with cPanel
      • How to create and manage email forwarders using cPanel
      • Managing email routing with cPanel
      • Change Your E-Mail Account Password
      • Improving mail deliverability (SPF & DKIM)
    • cPanel - Managing Files
    • cPanel - Metrics
    • cPanel - Software and Applications
    • cPanel - Security
    • SiteBuilder Pro
    • Enable or disable PHP modules
    • How can I migrate my cPanels to Vimzaa Website Hosting?
    • SSH Access to cPanel Servers
    • How do I add another domain to my Hosting Account?
    • How do I access WHM (Web Host Manager)?
  • Plesk Hosting
    • An Introduction to Plesk
    • Getting Started with Plesk
      • How to login to Plesk for the first time
      • The Plesk User Interface Explained
      • Understanding Subscriptions in Plesk
      • How to upload content with Plesk
      • How to manage mailboxes / mail accounts with Plesk
      • Managing Web ApplicationsManaging Web Applications
    • Plesk Tutorials
      • A basic getting started guide to creating your first site with Plesk
      • How to manage DNS and nameservers using Plesk
    • Plesk Funtionality - Explained
      • Managing your User Account in Plesk
      • Managing your Web Hosting with Plesk
  • Game Servers
    • Setup Teamspeak 3 Server on Linux
    • Installing SteamCMD for Steam Game Servers
  • SSL Certificates
  • Domains
    • Can I register or transfer my domain to Vimzaa
    • Can I buy a domain name together with a web hosting plan
    • Default nameservers for shared webhosting
Powered by GitBook
On this page
  • Flush your DNS caches
  • Overview
  • How to clear your DNS cache
  • Windows® 8
  • Windows® 7
  • Windows XP®, 2000, or Vista®
  • MacOS® 10.10.4 and above
  • MacOS 10.10.1, 10.10.2, and 10.10.3
  • MacOS 10.7, 10.8, and 10.9
  • MacOS 10.5 and 10.6
  1. cPanel Hosting
  2. cPanel - Advanced

How to flush your local machines DNS Cache

PreviousHow to create custom ‘error pages’ in cPanelNextHow to use the Google Public DNS for faster DNS lookups

Last updated 6 years ago

If your machine is struggling to catch up with DNS changes, then its due to the authoritative nameservers handled by your ISP (internet service provider) caching those records. Also, in some cases, it may be your router inside your network caching those results.

There are two solutions for this to help your machines catch up and see those changes correctly.

The first is to try…

Flush your DNS caches

Overview

Your DNS cache stores the locations (IP addresses) of web servers that contain web pages which you have recently viewed. If the location of the web server changes before the entry in your DNS cache updates, you can no longer access the site.

If you encounter a large number of , you may need to clear your DNS cache. After you clear your DNS cache, your computer will query nameservers for the new DNS information.

How to clear your DNS cache

The following methods allow you to remove old and inaccurate DNS information that may result in 404 errors.

Windows® 8

To clear your DNS cache if you use Windows 8, perform the following steps:

  1. On your keyboard, press Win+X to open the WinX Menu.

  2. Right-click Command Prompt and select Run as Administrator.

  3. Run the following command:

    ipconfig /flushdns

    If the command succeeds, the system returns the following message:

    Windows IP configuration successfully flushed the DNS Resolver Cache.

Windows® 7

To clear your DNS cache if you use Windows 7, perform the following steps:

  1. Click Start.

  2. Enter cmd in the Start menu search text box.

  3. Right-click Command Prompt and select Run as Administrator.

  4. Run the following command:

    ipconfig /flushdns

    If the command succeeds, the system returns the following message:

    Windows IP configuration successfully flushed the DNS Resolver Cache.

Windows XP®, 2000, or Vista®

To clear your DNS cache if you use Windows XP, 2000, or Vista, perform the following steps:

  1. Click Start.

  2. On the Start menu, click Run….

    • If you do not see the Run command in Vista, enter run in the Search bar.

  3. Run the following command in the Run text box:

    ipconfig /flushdns

    If the command succeeds, the system returns the following message:

    Successfully flushed the DNS Resolver Cache.

MacOS® 10.10.4 and above

To clear your DNS cache if you use MacOS X version 10.10.4 or above, perform the following steps:

  1. Click Applications.

  2. Click Utilities.

  3. Click Terminal.

  4. Run the following command:

    sudo killall -HUP mDNSResponder

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

    Warning:

    To run this command, you must know the computer’s administrator account password.

MacOS 10.10.1, 10.10.2, and 10.10.3

To clear your DNS cache if you use MacOS X version 10.10 through 10.10.3, perform the following steps:

  1. Click Applications.

  2. Click Utilities.

  3. Click Terminal.

  4. Run the following command:

    sudo discoveryutil mdnsflushcache

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

    Warning:

    To run this command, you must know the computer’s administrator account password.

MacOS 10.7, 10.8, and 10.9

To clear your DNS cache if you use MacOS X version 10.7, 10.8, or 10.9, perform the following steps:

  1. Click Applications.

  2. Click Utilities.

  3. Double-click Terminal.

  4. Run the following command:

    sudo killall -HUP mDNSResponder

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

    Warning:

    To run this command, you must know the computer’s administrator account password.

MacOS 10.5 and 10.6

To clear your DNS cache if you use MacOS X version 10.5 or 10.6, perform the following steps:

  1. Click Applications.

  2. Click Utilities.

  3. Double-click Terminal.

  4. Run the following command:

    sudo dscacheutil -flushcache

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

    Warning:

    To run this command, you must know the computer’s administrator account password.

The other option is to use the ‘Google Public DNS’ service, which is completely free and improves DNS lookup times drastically.

HTML 404 error codes