π ~1 min read
Table of contents
Symptom & Impact
Name resolution fails and package updates or service calls to external hosts stop.
Environment & Reproduction
Typically follows network reconfiguration, DHCP issues, or resolver service failures.
Root Cause Analysis
Invalid DNS server settings or failed systemd-resolved service blocks hostname lookups.
Quick Triage
Check resolver status and active DNS servers before touching network plans.
Step-by-Step Diagnosis
Inspect /etc/resolv.conf linkage and netplan DNS declarations for conflicts.

Solution – Primary Fix
Restore resolver service and apply validated DNS settings through netplan.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Temporarily set known-good resolvers for incident recovery and then persist policy.
Verification & Acceptance Criteria
Hostnames resolve reliably and apt update completes without DNS errors.
Rollback Plan
Revert netplan DNS edits to last known-good config if connectivity degrades.
Prevention & Hardening
Template DNS settings and monitor resolver health with proactive service checks.
Related Errors & Cross-Refs
Often appears with failed to fetch apt mirrors, TLS handshake failures, and proxy outages.
Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.
View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
systemd-resolved and netplan DNS design notes for Ubuntu 22.04 LTS environments.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.