Ubuntu flush DNS cache (22.04)

 

sudo resolvectl flush-caches

Then,

resolvectl statistics should show cache size of 0

and then,

nslookup <hostname> should reflect the new,correct IP Address

----------


DNS utils:

sudo apt install dnsutils. 

Installs nslookup and dig

Can also do sudo apt install cifs-utils


From: https://linuxhint.com/flush-dns-cache-ubuntu-22-04/ and https://linuxhint.com/flush_dns_cache_ubuntu/

Comments

Popular posts from this blog

QTreeView and QTableView dynamic changes

C++ strings and string_view