{{tag>DNS}} # GNU/Linux cache DNS Voir : * systemd-resolve * dnsmasq * nscd * bind * pdnsd Voir aussi : * ZeroConf / avahi * mDNSResponder ## nscd Source : http://www.eyrie.org/~eagle/notes/solaris/dns-cache.html Vider le cache DNS ~~~bash nscd -i hosts ~~~ Désactiver le cache DNS `/etc/nscd.conf` ~~~ini enable-cache hosts no ~~~ Autre conf (Using NSCD with SSSD) ~~~bash enable-cache hosts yes enable-cache passwd no enable-cache group no enable-cache netgroup no enable-cache services no ~~~ ## SystemD ~~~bash sudo resolvectl flush-caches sudo systemd-resolve --flush-caches ~~~ ## Bind Afficher le cache ~~~bash rndc dumpdb -cache ~~~ Vider le cache ~~~bash rndc flush ~~~ ## Autres ~~~bash /etc/init.d/dns-clean restart sudo pdnsd-ctl empty-cache sudo service nscd restart sudo service dnsmasq restart sudo service named restart sudo service avahi-daemon restart sudo killall -HUP mDNSResponder ~~~