Linux – How to clear DNS Cache/Fix DNS_PROBE_FINISHED_NXDOMAIN (Manjaro + Vivaldi)

cachednslinux

I am recently getting the DNS_PROBE_FINISHED_NXDOMAIN error browsing with Vivaldi (based on Chromium) running on Manjaro Linux (based on Arch). I have read that this error mainly has to do with DNS Cache and clearing it will fix this issue. I couldn't figure out however how to do this with Manjaro, I am not even sure if Manjaro manages a DNS cache by default. Restarting fixes the problem, but that's quite a cumbersome. Based on proposed solutions for other linuxes I tried the following without success:

  • sudo /etc/init.d/dns-clean # /etc/init.d/ not found
  • sudo systemctl restart nscd # no error, no effect as well

nscd is installed however. Any suggestions?

Best Answer

I think there are two places you can check.

nscd

You can flush the nscd cache by invalidating the hosts cache:

nscd -i hosts

You can then check for the current number of cached values if you're curious:

nscd -g

Vivaldi

You can also clear Vivaldi's cache:

vivaldi://net-internals/#dns

Hope this helps!

Related Question