How can I flush the DNS cache in Debian 9.1 with KDE?
Best Answer
If using systemd-resolved as your DNS resolver (i.e. the hosts line of your /etc/nsswitch.conf file includes the word resolve and/or /etc/resolv.conf contains the line nameserver 127.0.0.53), then this command will flush its cache:
dnsmasq is a lightweight DNS, TFTP and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN. Dnsmasq accepts DNS queries and either answers them from a small, local, cache or forwards them to a real, recursive, DNS server. This software is also installed many cheap routers to cache dns queries. Just restart to flush out dns cache:
Best Answer
If using
systemd-resolved
as your DNS resolver (i.e. thehosts
line of your/etc/nsswitch.conf
file includes the wordresolve
and/or/etc/resolv.conf
contains the linenameserver 127.0.0.53
), then this command will flush its cache: