📖 ~1 min read
Table of contents
Symptom & Impact
Hosts intermittently fail domain lookups, creating random application outages, package repository failures, and latency spikes in API calls using hostname targets.
Environment & Reproduction
Issue appears on Ubuntu 20.04 with mixed DHCP/static resolver settings, VPN clients, or stale netplan states where resolver order changes across interface events.
Root Cause Analysis
Conflicts between systemd-resolved, NetworkManager, and manually edited resolv.conf cause unstable upstream DNS selection and occasional unreachable resolver endpoints.
Quick Triage
Check current nameserver chain, test lookup against each upstream directly, and verify whether failures are local cache issues or external DNS service instability.
Step-by-Step Diagnosis
Review resolvectl status, inspect netplan YAML for DNS directives, and correlate failures with interface renewals and VPN connection logs.

Solution – Primary Fix
Standardize resolver ownership under systemd-resolved, define explicit upstream servers in netplan, apply changes, and flush caches before retesting name resolution paths.
Still having issues? Our Network Design team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Deploy local caching resolvers, pin DNS over TLS endpoints, or configure split DNS policies by interface for hybrid private/public workloads.
Verification & Acceptance Criteria
Accept fix when repeated dig and application transactions resolve consistently during interface renewals, VPN toggles, and sustained workload traffic.
Rollback Plan
Revert to previous netplan profile, restore backed up resolver settings, and disable custom overrides if newly introduced resolver priorities break internal routing.
Prevention & Hardening
Apply configuration management, alert on resolver drift, and document DNS ownership boundaries to avoid manual edits that bypass the chosen network stack.
Related Errors & Cross-Refs
Related topics include apt mirror hostname failures, internal domain lookup mismatches, and VPN split-DNS conflicts addressed in linked networking tutorials.
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
See Ubuntu netplan guides, systemd-resolved man pages, and DNS operations best practices for resilient enterprise resolver 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.