21 Jan 2025

Clear DNS Cache linux 1 line command

To flush the DNS cache on Linux, the command depends on the service managing DNS caching. Common examples include:

  1. For systemd-resolved:  sudo systemctl restart systemd-resolved
  2. For dnsmasq: sudo systemctl restart dnsmasq
  3. For nscd: sudo systemctl restart nscd

 

You may also like

Building a Command-Line Weather App with Python

In this blog, we explored the process of building a command-line wea...

Continue reading

How to Open File Manager from Terminal in Linux?

Discover how to use the xdg-open command to open the file manager an...

Continue reading

Building a Command-Line Weather App with Python: Using APIs for Data Retrieval

In this blog post, we walk through the process of creating a command...

Continue reading