Name resolution fails on your server
Updated 27 Nov 2026 dns network
Separate a DNS problem from a network problem and fix the resolver.
Test the two separately
ping -c3 1.1.1.1 # network
getent hosts example.com # name resolution
If the first works and the second does not, it is DNS.
Check the resolver
resolvectl status
cat /etc/resolv.conf
dig @1.1.1.1 example.com
If querying a resolver directly works, your configured resolver is the problem.
Restart the local resolver
sudo systemctl restart systemd-resolved
Set resolvers
Follow DNS lookups and resolvers.
Other causes
- A firewall rule inside the server blocking outbound port 53
- A wrong clock, which breaks DNSSEC checks
- Containers using an unreachable resolver: set
"dns"in/etc/docker/daemon.json
Private addresses
Traffic to private ranges is blocked by network isolation, so a resolver on another private network cannot be used.