3. Dedicated Direct DNS — With IPv6

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

Advanced OpenVPN with IPv6 · Advanced IPv4 · Simple policies

Keep DNS on its designated direct service, independently of the selected applications’ OpenVPN payload path. Direct DNS is the required policy here, not fallback.

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 One designated DNS service directly
Selected application payload VPN A for IPv4 and IPv6
Ordinary application payload Direct IPv4/IPv6

DNS scope: Host-wide upstream DNS. 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. Declare the direct resolver’s real IPv4/IPv6 transport endpoints, interface scope and required checks. Keep RA/DHCP or provider-pushed DNS from silently replacing it.

  2. Give selected applications access to this resolver context even while their payload is denied. Keep the forwarder’s direct DNS permission distinct from selected application payload.

  3. Configure VPN A only for the selected payload role. Verify selected IPv4/IPv6 payload cannot escape directly; ordinary payload remains direct.

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
Dedicated DNS fails a required check Close DNS; retain healthy known-address payload. Neither VPN DNS nor another direct provider substitutes.
VPN payload family fails Close that payload path while the dedicated DNS remains available.
VPN session fails Close both dependent payload families; DNS need not stop unless its own path or shared underlay fails.
Direct underlay fails Close actual dependent DNS/direct/outer-transport paths; do not mislabel it as only a VPN fault.

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

VPN A’s IPv6 payload path fails while the designated direct DNS service continues answering A and AAAA controls. Selected IPv6 payload closes, but the same application can still resolve names and use independently healthy IPv4 payload through VPN A. Conversely, a failed required direct DNS transport closes DNS without stopping healthy known-address VPN payload.

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 VPN-pushed DNS, another direct IPv6 resolver and physical-interface payload from a selected application cannot substitute. The direct DNS forwarder must not become a general traffic proxy.

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.