How to Flush Dns Cache In Linux ?

Free Seo Tool

How to Flush Dns Cache In Linux ?

If the DNS information of a website has changed, then the information stored in a computer's DNS cache will have to be updated as well, or else the user will encounter problems when trying to access the website.

This can be achieved by flushing or refreshing the DNS cache. Through this, the old and outdated information of a web address will be removed from the computer's DNS cache, and the updated DNS information will be stored in its place.

How to fix corrupted DNS cache in linux

  1. In many builds of Linux the nscd daemon is used to manage the client DNS cache. For builds that use this method, restarting the nscd daemon is the primary means to flush DNS cache.
  2. Enter sudo /etc/init.d/nscd restart and press the enter or return key.
  3. Once nscd restarts the DNS will be flushed. Alternatively, you can enter "service nscd restart"
linux nscd restart linux tux

Note: Ubuntu does not cache DNS per default. In ubuntu if you want to flush DNS cache you need to restart nscd daemon. Install nscd using the following command "sudo aptitude install nscd" and flush the dns as described above.

Advertisement
APK downloader

Website Status Checker Bookmarklet

Once added to your toolbar, this button will let you to check the status of a site from your browsers toolbar.

Just drag the button your bookmarks bar:

Down Right Now?

LAST WEBSITE ADDED

LAST CHECHED

Report Service Issues on Twitter

Help spread the word about service disruptions! Just include the hashtags #downuptime in your tweet and we'll factor it into our stats.

COMMON USER ERRORS

  • Connection Error

    show

  • Bad Settings

    show

  • Software Problem

    show

  • Operating System

    show

  • Hardware

    show

COMMON SERVER ERRORS

  • Domain Name

    show

  • Server Error

    show

  • Misconfiguration

    show

  • Hosting Failure

    show

  • Other

    show

WHAT TO DO

  • Wait a few minutes

    show

  • Official announcements

    show

  • User reports

    show

  • Contact Webmaster

    show

  • Find Alternatives

    show