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:
- For
systemd-resolved
:sudo systemctl restart systemd-resolved
- For
dnsmasq
:sudo systemctl restart dnsmasq
- 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 readingHow to Open File Manager from Terminal in Linux?
Discover how to use the xdg-open command to open the file manager an...
Continue readingBuilding 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