Affected versions: Ubuntu 22.04 LTS (Jammy)

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

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.

Illustrative mockup for ubuntu-22-04-lts β€” dns_failure_diag
Temporary failure in name resolution from apt and curl β€” Illustrative mockup β€” Progressive Robot

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.

Illustrative mockup for ubuntu-22-04-lts β€” dns_failure_fix
Repairing systemd-resolved and netplan DNS settings β€” Illustrative mockup β€” Progressive Robot

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.

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.