1. DNS Follows VPN Applications — With IPv6

4 Total views across this article’s versions; includes the historical baseline where available.

Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies

Keep both families of selected application payload and DNS on VPN A, while ordinary applications retain their designated direct paths.

Read the path and failure boundaries first. This is the same policy as advanced IPv4 and the simple walkthrough, with IPv6 explicitly covered. They are alternative deployments, not concurrent owners.

Follow the shared Ubuntu 24.04 implementation walkthrough for this use case: configuration, source build, guarded installation, controlled handoff, operating commands and rollback. Select ipv6 and this case in the source bundle. The policy below supplies its DNS scope, application boundaries and permitted failure behavior. OpenVPN Community 2.6 is the reference; exact-build capability checks remain required. Linux execution is deferred.

Define the policy

Traffic Required path for each enabled family
DNS VPN A for selected applications; designated direct DNS for others
Selected application payload VPN A for IPv4 and IPv6
Ordinary application payload Direct IPv4/IPv6

DNS scope: Split by application group. DNS transport endpoints are declared separately from A/AAAA record types. All required checks for the selected DNS service must pass; an undeclared family is not an implicit alternate. DNS-only loss preserves healthy known-address payload. Payload-only loss preserves healthy DNS. Family-specific payload loss closes that family; a common session/control fault affects every actual dependent.

Prepare the roles and endpoints

  1. Create distinct resolver contexts for selected and ordinary applications, including IPv6-capable stubs and forwarded requests. A shared cache or delegated resolver must not collapse the separation.

  2. Record the required IPv4/IPv6 transport endpoints for each DNS service. A provider without an IPv6 endpoint may use its approved IPv4 transport for A and AAAA records; do not substitute another provider.

  3. Bind selected IPv4 and IPv6 payload to VPN A. Review temporary/source addresses and both policy databases; ordinary payload retains direct IPv4/IPv6 paths.

Complete the IPv6 deployment worksheet and the shared inventory. The worksheet is documentation, not loadable controller configuration. Unsupported or unreviewed IPv6 paths remain denied; an IPv4-only provider cannot be advertised as carrying IPv6 merely because the client has a global IPv6 address.

Activate behind existing protection

Use the closed-first handover: establish and verify both families’ restrictions before replacing the older IPv6 block. Confine DNS/probes/OpenVPN transport separately. Qualify the selected DNS service and each payload family on current evidence; verify actual application route and resolver selection before releasing each eligible permission.

The fifteen-minute startup allowance, 4:30 complete attempts and eighty-second qualification ceiling are unchanged. An interface, AAAA answer or successful connection using another family is insufficient. The controller and adapters are implemented as local reference source with offline checks. These operating requirements still need acceptance on the target Linux host.

Respond to the actual failure

Observed condition Required response
Selected required DNS path fails Close selected DNS; normal DNS and healthy payload remain available. Neither direct DNS nor a different VPN substitutes.
Selected IPv6 payload fails alone Close that payload path. Healthy selected IPv4 through VPN A and healthy DNS continue.
VPN A session fails Close every selected DNS/payload path using it. Ordinary direct services do not acquire that dependency.
Ordinary DNS fails alone Close that ordinary DNS context; do not move it onto VPN A or stop healthy selected DNS.

Degraded or unknown required state counts as loss. Keep no-escape restrictions throughout detection, repair, cooldown and lockout. A DNS-only error does not authorize restarting a healthy shared tunnel. One OpenVPN owner retains one set of attempt counters; adding a family does not multiply them.

Work through an incident

At 00:00 the selected IPv6 DNS endpoint becomes unresponsive in a profile requiring both DNS transports. Its IPv4 DNS endpoint still answers, but the selected DNS service is degraded and closes. Selected known-address IPv4/IPv6 payload on healthy VPN A can continue. Ordinary users retain their normal DNS. The selected resolver is repaired and fully requalified on VPN A; there is no direct-provider switch.

Apply the unchanged health and recovery limits. Examples are constructed timelines, not Linux measurements. Earlier operation deadlines, expiry and manual intent still take precedence.

Return, restart and withdraw

Restore only the required provider/path. No direct, other-provider or other-VPN substitute is authorized. The family/path that failed stays denied through cooldown and final lockout while independently healthy permitted traffic continues.

An explicit operator recovery restart or host boot may replenish eligible allowances once. Preserve selected providers and manual holds; automatic crashes, reconnects and address-family changes do not reset budgets. Revalidate before release. Follow the operation and withdrawal instructions, especially restoring protected IPv6 denial before returning to the IPv4-only set.

Check the forbidden paths

Verify selected upstream DNS cannot leave directly over either family, ordinary lookups cannot use the selected group’s resolver context, and selected IPv6 payload cannot use a physical-interface default.

Apply the dual-stack acceptance matrix, including IPv6-only loss, IPv4-only loss, both DNS query types, independent expiry and shared-session failures. Linux tests remain unexecuted.