Interview Prep/Networking/DNS resolution failures

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.

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures