Affected versions: Ubuntu 20.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 cannot resolve domains, breaking package installs, API calls, and service-to-service communication.

Environment & Reproduction

Appears after netplan edits, resolver overrides, VPN changes, or DHCP DNS drift.

Root Cause Analysis

Stub resolver points to invalid upstream nameservers or conflicting resolver configuration paths.

Quick Triage

Check local stub status and test direct queries against known upstream DNS servers.

Step-by-Step Diagnosis

Inspect resolved status, netplan YAML, and resolv.conf linkage for mismatch conditions.

Illustrative mockup for ubuntu-20-04-lts — network_config
systemd-resolved stub resolver failure pattern — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Correct netplan DNS entries, restart systemd-resolved, and revalidate resolver path consistency.

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-20-04-lts — log_or_config
Correct netplan and resolved DNS configuration — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Temporarily set static resolv.conf for emergency recovery while permanent config is prepared.

Verification & Acceptance Criteria

Forward and reverse lookups succeed and dependent services restore normal connectivity.

Rollback Plan

Restore previous netplan and resolver settings from backup and reapply network configuration.

Prevention & Hardening

Version-control network configs and validate DNS health in post-change checks.

May appear with DHCP lease bugs, VPN resolver overrides, and split-horizon DNS design issues.

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

View all Ubuntu 20.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Ubuntu netplan and systemd-resolved documentation for server DNS architecture.

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.