📖 ~1 min read
Table of contents
Symptom & Impact
Host can ping IPs but cannot resolve domain names, breaking apt, APIs, and service discovery.
Environment & Reproduction
Ubuntu 20.04 with systemd-resolved and netplan-provided DNS entries.
Root Cause Analysis
Broken upstream DNS servers, stale /etc/resolv.conf symlink, or incorrect split DNS settings.
Quick Triage
Run ‘resolvectl status’, ‘ls -l /etc/resolv.conf’, and test with ‘dig @ ubuntu.com’.
Step-by-Step Diagnosis
Inspect network-specific DNS in netplan, check resolved service logs via journalctl, and verify route reachability.

Solution – Primary Fix
Restore correct resolv.conf symlink, set valid DNS in netplan, then ‘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.

Solution – Alternative Approaches
Temporarily set public resolvers for continuity or deploy local caching resolver with health checks.
Verification & Acceptance Criteria
Domain lookup succeeds consistently and apt update completes with no name-resolution errors.
Rollback Plan
Reapply previous DNS configuration and restart networking if new resolver choice degrades latency.
Prevention & Hardening
Use redundant DNS servers, monitor query failure rates, and document resolver ownership.
Related Errors & Cross-Refs
Temporary failure in name resolution, Could not resolve host, and systemd-resolved timeout logs.
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
systemd-resolved documentation, netplan DNS examples, and Ubuntu networking troubleshooting guide.
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.