Clean DNS cache

NethServer Version: 8
Debian 12

I’m having some name resolution issues and needed to clear the DNS cache on Nethserver 8. Does anyone know the correct command?

I assume it’s about dnsmasq? A restart should clean the cache:

systemctl restart dnsmasq1

Debian doesn’t cache DNS AFAIK but maybe it helps to restart networking?

systemctl restart networking
1 Like