Affected versions: Ubuntu 22.04 LTS

πŸ“– ~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

Host can reach IP addresses but hostname lookups fail, breaking package updates, APIs, and service discovery.

Environment & Reproduction

Often appears after manual edits to /etc/resolv.conf or conflicting netplan DNS entries.

Root Cause Analysis

Stub resolver link, upstream DNS list, or symlinked resolv.conf state becomes inconsistent with systemd-resolved expectations.

Quick Triage

Verify resolver service health and active nameserver assignment.

Step-by-Step Diagnosis

Inspect per-link DNS and query behavior to isolate link-level or global resolver faults.

Illustrative mockup for ubuntu-22-04-lts β€” network_config
systemd-resolved stub resolver failure β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Restore expected resolv.conf symlink, correct netplan DNS entries, and restart networking services.

Still having issues? Our Network Design team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for ubuntu-22-04-lts β€” log_or_config
Corrected resolved and netplan DNS settings β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Use static nameservers in netplan for isolated networks where DHCP DNS is unreliable.

Verification & Acceptance Criteria

Forward and reverse lookups succeed and application endpoints resolve consistently.

Rollback Plan

Revert netplan YAML from backup and reapply if new DNS set introduces regressions.

Prevention & Hardening

Manage DNS through netplan only and avoid direct manual edits to generated resolver files.

Frequently coincides with cloud-init network rewrites and VPN client DNS takeover.

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

Ubuntu and systemd-resolved documentation on resolver architecture and netplan integration.

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.