Fix “sudo: unable to resolve host” on Ubuntu
This warning usually means the machine’s active hostname no longer resolves through its configured Name Service Switch sources. Diagnose the exact name first, correct `/etc/hosts` or hostname configuration safely, and verify through `getent` before changing DNS.