--- title: VPN and DNS Policies description: Choose a DNS provider, route, and fallback policy independently of application routing. ordersectionsby: linktitle --- Choosing a VPN does not settle every routing decision. You may want selected applications to use a VPN while everything else stays direct. You may also want DNS to follow a different path from the applications requesting it. Start with [Routing Tools and Scope](routing-tools-and-scope/), then choose the policy below that fits what you want to accomplish. {{% callout style="note" %}} These six walkthroughs are available for prototype review. Their commands have not been tested on a Linux host. Each configuration is an alternative, not another layer to install on top of the others. {{% /callout %}} ## Choose Your DNS Policy In this table, selected applications require their assigned VPN; other application connections remain direct. DNS means upstream requests leaving the host, not the local request to a DNS stub. On a narrow screen, scroll the table sideways.
| Scenario and Tutorial | Application Route | DNS Route | DNS Provider | DNS Failure Policy | | --- | --- | --- | --- | --- | | [1. DNS Follows VPN Applications](/tutorials/networking/vpn-dns/dns-for-vpn-applications/) | Selected apps: VPN; others: direct | Selected apps: VPN; others: direct | VPN DNS for selected apps; designated normal provider for others | VPN-scoped lookups stop on VPN loss; other DNS keeps its normal path | | [2A. Strict VPN DNS](/tutorials/networking/vpn-dns/all-dns-through-vpn/) | Selected apps: VPN; others: direct | All DNS: VPN | VPN DNS or one designated provider reached through VPN | No direct fallback; fresh upstream lookups fail | | [2B. Prefer VPN DNS with Direct Fallback](/tutorials/networking/vpn-dns/vpn-dns-with-direct-fallback/) | Selected apps: VPN; others: direct | All DNS: VPN mode or explicitly selected direct mode | VPN DNS in VPN mode; designated provider in direct mode | Permits explicit provider/path changes; automatic trigger integration is separate | | [3. Dedicated Direct DNS](/tutorials/networking/vpn-dns/dedicated-direct-dns/) | Selected apps: VPN; others: direct | All DNS: direct, regardless of VPN state | Designated DNS provider | No silent substitution of VPN DNS | | [4A. Separate VPNs, Using VPN 1's DNS](/tutorials/networking/vpn-dns/vpn1-native-dns-apps-on-vpn2/) | Selected apps: VPN 2; others: direct | All DNS: VPN 1 | VPN 1's provided DNS | Strict: no direct or VPN 2 fallback | | [4B. Separate VPNs, Using an Independent DNS Provider](/tutorials/networking/vpn-dns/vpn1-independent-dns-apps-on-vpn2/) | Selected apps: VPN 2; others: direct | All DNS: VPN 1 | Designated provider reached through VPN 1 | Strict: no direct or VPN 2 fallback |
DNS fallback and application fallback are separate decisions. Example 2B permits an explicit change of DNS provider and path; it does not switch automatically or allow VPN-only applications to use the direct connection. ## Keep the Three Responsibilities Separate The walkthroughs configure routing and DNS policy using existing VPN interfaces and return paths. [VPN operation](/review/vpn-operation-integration/) and [availability monitoring](/review/dns-availability-review/) have separate reference drafts. Automatic switching, persistence, and advanced integration remain deferred. ## Connect This to Dedicated DNS Read [What Is a Dedicated DNS?](/reference/networking/dns-dedicated-dynamic-smart/#dedicated-dns) and [Combining DNS Services with a VPN](/reference/networking/dns-dedicated-dynamic-smart/#vpn-combo) for the existing discussion. Its outstanding technical-review notes remain visible. {{< subject-overview >}} ## Review History [Earlier decision table and separate drafts](/review/vpn-dns-decisions/) ยท [Prose and technical integration record](/review/vpn-dns-integration-changes/).