After enabling systemd-resolved, `dig` to `127.0.0.53` works, but VPN-internal names don't resolve.
IntermediateTroubleshootingDNS resolution failures
Answer
Likely causes → Split DNS isn't configured: the VPN's DNS server is attached to the tunnel link but no routing domain (~corp.internal) tells resolved to send those names there.
Diagnose →
resolvectl status
resolvectl query host.corp.internal
Fix →
sudo resolvectl dns tun0 10.8.0.1
sudo resolvectl domain tun0 '~corp.internal'
Most VPN clients do this via a NetworkManager plugin or update-systemd-resolved script.
Prevent → Ship the VPN client with resolved integration configured.
More on DNS resolution failures
`dig app.example.com` returns `status: NXDOMAIN`.Beginner`dig` returns `status: SERVFAIL` for one domain while other domains resolve fine.Intermediate`curl: (6) Could not resolve host: api.example.com` inside a container but it resolves on the host.BeginnerA DNS change was made 2 hours ago, but some users still reach the old IP.BeginnerJava service keeps connecting to an old IP long after the DNS record changed.IntermediateIn Kubernetes, external lookups from pods are slow and CoreDNS logs show many NXDOMAIN queries like `api.stripe.com.default.svc.cluster.local`.Intermediate