Determine current DNS resolver service

to flush/clean DNS , have to know your DNS resolver service

cat /etc/resolv.conf

«systemd-resolve» and «systemd-resolved» ARE NOT THE SAME

«systemd-resolve» is a command line tool for interacting with the «systemd-resolved» service and «systemd-resolved» is the actual DNS resolver service

now you can see DNS cache information , you can use this command «systemd-resolve –statistics»

sudo systemd-resolve –flush-caches

sudo systemctl restart systemd-resolved

these two commands fusl complety DNS cache ,

after run two commands above

Comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *