π ~1 min read
Table of contents
Symptom & Impact
Hosts intermittently fail DNS lookups, causing apt, API calls, and service discovery to break unpredictably. Applications appear unstable despite healthy network connectivity.
Environment & Reproduction
Ubuntu 22.04 LTS uses systemd-resolved with stub resolver at 127.0.0.53. Reproduce under upstream DNS latency, inconsistent DHCP-provided servers, or split-DNS misconfiguration.
Root Cause Analysis
Failures often come from unreachable upstream nameservers, invalid search domains, or resolver cache states combined with network transitions across interfaces and VPN links.
Quick Triage
Test direct DNS queries against configured upstreams and inspect current resolver status before restarting services. This distinguishes resolver service issues from external DNS outages.
Step-by-Step Diagnosis
Review resolved logs, interface DNS assignments, and query latency. Confirm whether failures are domain-specific, link-specific, or global across all nameservers.

Solution – Primary Fix
Set reliable DNS servers in netplan, apply configuration, and restart resolved service. Clear stale cache and verify deterministic query responses across repeated tests.
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
Use local caching resolver like Unbound, set per-link DNS for VPN domains, or disable problematic DHCP DNS propagation where static resolver policy is required.
Verification & Acceptance Criteria
Repeated DNS queries return quickly without timeout, application endpoints resolve consistently, and resolver logs remain free of upstream failure bursts.
Rollback Plan
Restore prior netplan file, reapply networking, and restart systemd-resolved. If needed, temporarily point to known public resolvers while root-cause review continues.
Prevention & Hardening
Monitor DNS latency/error rates, define primary/secondary resolvers explicitly, and validate split-horizon DNS behavior in staging for all critical domains.
Related Errors & Cross-Refs
Often adjacent to DHCP lease churn, VPN route precedence issues, and stale /etc/resolv.conf symlink states in manually modified systems.
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
Consult systemd-resolved documentation, netplan docs, and man pages for resolvectl(1), resolved.conf(5), and dig(1).
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.