Key Takeaways

You can flush the DNS cache on a systemd-based Linux computer with the "resolvectl flush-caches" command. If you use dnsmasq, you can clear the DNS using "sudo killall -HUP dnsmasq" instead.