Affected versions: Ubuntu 24.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

Hostname lookups fail intermittently, affecting updates and service discovery.

Environment & Reproduction

Common after VPN profile changes or DHCP option drift.

resolvectl query archive.ubuntu.com

Root Cause Analysis

Resolver receives invalid upstream DNS or stale per-link domain settings.

Quick Triage

Check resolver symlink and service status.

ls -l /etc/resolv.conf && systemctl status systemd-resolved

Step-by-Step Diagnosis

Inspect per-interface DNS servers and search domains.

resolvectl status
Illustrative mockup for ubuntu-24-04-lts — resolvectl_status
Resolver status output — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Restore stub resolv.conf symlink and restart resolved.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf && sudo systemctl restart systemd-resolved
Illustrative mockup for ubuntu-24-04-lts — restart_resolved
Restarting systemd-resolved service — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Define explicit DNS settings in netplan or NetworkManager profiles.

Verification & Acceptance Criteria

`resolvectl query` and `dig` succeed consistently for required domains.

Rollback Plan

Revert symlink and DNS profile changes if internal resolution breaks.

Prevention & Hardening

Monitor DNS health and enforce approved resolver ordering.

Related to DNSSEC failures and search-domain recursion loops.

Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.

View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Ubuntu systemd-resolved deployment and troubleshooting docs.

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.