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/