7

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.

Olli
  • 8,971
Pramod
  • 157
  • 1
  • 3
  • 8

3 Answers3

1

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.

owl
  • 4,951
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
Maythux
  • 84,289
0

Ubuntu 18.04

Ubuntu 17.04 and onwards use systemd for DNS.

sudo systemd-resolve --flush-caches
Merlijn Sebrechts
  • 7,394
  • 1
  • 42
  • 70