docs: document the split-horizon DNS setup #94
Loading…
Reference in a new issue
No description provided.
Delete branch "change/split-horizon-dns-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
#34 decided split-horizon support is the documented alternative-DNS recipe, but the README said nothing about it — every split-horizon user hits "internal names resolve to public addresses under VPN" with no breadcrumb.
Fix
A "Split-horizon DNS" section under the DNS options: the failure mode, the alt-DNS recipe (local resolver first, public fallback second), and two caveats — the resolver must be reachable outside the tunnel (LAN traffic is allowed unless "Block LAN" is set), and systemd-resolved's sticky failover can leave the system on the fallback after a transient blip.
Verification
Live-tested 2026-08-20 on a real split-horizon LAN: with the tunnel up, the tun link carried both servers plus
~.and internal names resolved to their LAN addresses. The stickiness caveat is not theoretical — a ping-restart reconnect during that same test rotated resolved to the fallback, where it silently stayed until the server list was changed (an identical re-apply does not reset selection).Closes #34
8609aad980fd40dca6f5Reshaped after #96: the standalone section is gone. What survives is three sentences on the "Always use alternative DNS servers" bullet itself — the failure mode, the local-resolver-first recipe, and the reachable-outside-the-tunnel/Block-LAN caveat. The sticky-failover caveat and its manual resolvectl fix are cut entirely: #96 makes recovery automatic, so documenting the workaround would describe a bug that no longer exists. Net diff is now one line.