How to flush DNS in Ubuntu 13.10?

7,022

Solution 1

Install nscd using the following command if not yet

sudo apt-get install nscd

Flush DNS Cache in Ubuntu by restarting the nscd

sudo /etc/init.d/nscd restart

Solution 2

There is no actual need to flush DNS as Ubuntu doesn't cache DNS. Instead, your ISP may be caching DNS. If you want to enable DNS cache, install pdnsd and resolvconf.

Share:
7,022

Related videos on Youtube

Pramod
Author by

Pramod

Updated on September 18, 2022

Comments

  • Pramod
    Pramod over 1 year

    We recently moved our website to a new server. But after changing the NS (name server) records, I can't access my website. The hosting provider said we need to flush the DNS settings in order to see the new website.

    I searched relating to this but I couldn't find a way to flush DNS settings in Ubuntu 13.10.

    • AzkerM
      AzkerM about 10 years
      Usually NS takes time to update its records & it depends. As far as I know, Ubuntu doesn't cache DNS by default but your ISP (assuming). Refer How do I clear the DNS cache?
  • Pramod
    Pramod about 10 years
    I'm so sorry. I'm new to Ubuntu and this forum too! Thank you telling me that :D
  • Maythux
    Maythux about 10 years
    @user245632 you are welcomed
  • Maythux
    Maythux about 10 years
    @Pramod an upvote is fair
  • owl
    owl almost 10 years
    @Pramod if it has helped you, please upvote! Thank you :)
  • owl
    owl almost 10 years
    @Ask That application only enables DNS caches, as mentioned by AzkerM and me, Ubuntu does not cache DNS by default.
  • mckenzm
    mckenzm almost 5 years
    All very well, but it is a long way from 13 to 18.