Affected versions: 24.04

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

Hostnames intermittently fail to resolve despite working network link.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Environment & Reproduction

Appears after VPN toggles or conflicting DNS settings from multiple interfaces.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Root Cause Analysis

systemd-resolved receives invalid upstream servers or split DNS conflicts.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Quick Triage

Run resolvectl status and nslookup ubuntu.com.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Step-by-Step Diagnosis

Inspect /etc/resolv.conf symlink target and check journalctl -u systemd-resolved -n 100.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-1
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Set known DNS in Netplan, apply with sudo netplan apply, then restart resolved: sudo systemctl restart systemd-resolved.

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-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Temporarily test with public resolvers to isolate upstream provider issues.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Verification & Acceptance Criteria

resolvectl query succeeds consistently and package downloads resolve quickly.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Rollback Plan

Restore previous Netplan and resolved configuration from backup.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Prevention & Hardening

Standardize DNS policy for VPN and LAN interfaces.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Related: temporary failure resolving archive.ubuntu.com.

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.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

References & Further Reading

systemd-resolved man pages and Ubuntu networking docs.

Illustrative mockup for ubuntu-24-04-lts β€” post-191-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

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.