π ~1 min read
Table of contents
Symptom & Impact
Hostname lookups fail, breaking package updates and external service calls.
Environment & Reproduction
Observed after resolver edits, VPN profile changes, or DHCP updates.
resolvectl status
getent hosts deb.debian.org
cat /etc/resolv.conf
Root Cause Analysis
Incorrect nameserver entries, stale stub resolver links, or per-link DNS overrides.
Quick Triage
Check active DNS servers and resolver symlink target.
ls -l /etc/resolv.conf
resolvectl dns
resolvectl query deb.debian.org
Step-by-Step Diagnosis
Inspect resolver logs and network link-specific DNS state.
journalctl -u systemd-resolved -n 120 --no-pager
networkctl status
resolvectl domain

Solution – Primary Fix
Set valid DNS servers, flush cache, and restart resolver stack.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo resolvectl dns eth0 1.1.1.1 8.8.8.8
sudo resolvectl flush-caches
sudo systemctl restart systemd-resolved
resolvectl query deb.debian.org

Solution – Alternative Approaches
Set static DNS in network configuration for persistence.
sudoedit /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved
Verification & Acceptance Criteria
DNS queries and apt update complete successfully.
getent hosts security.debian.org
resolvectl statistics
sudo apt update
Rollback Plan
Restore prior resolver settings from backup.
sudo cp -a /etc/systemd/resolved.conf /var/tmp/resolved.conf.bak.$(date +%s)
sudo systemctl restart systemd-resolved
Prevention & Hardening
Define primary and fallback resolvers and monitor lookup failures.
resolvectl status
journalctl -u systemd-resolved --since -1h --no-pager
Related Errors & Cross-Refs
May coincide with default route or firewall egress failures.
Related tutorial: View the step-by-step tutorial for Debian 13.
View all Debian 13 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Debian systemd-resolved and DNS operations documentation.
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.