Skip to content

Lesson 3 of 9 · 25m

Dual-Stack Architecture Without a Shadow Network

Decide which services become dual-stack, how name resolution steers traffic, and where partial IPv6 creates dangerous inconsistency.

Most real IPv6 deployments are dual-stack, not migrations to an IPv6-only world. That sounds easy: run IPv4 and IPv6 side by side. The trap is that you now have two networks sharing one hostname, one application, and one security policy. If they do not behave the same, users experience random failures and attackers find the less-governed path.

Dual-stack is a property of the whole path

A service is not really dual-stack because the host has an AAAA record. The path includes DNS, client source selection, routing, load balancer listeners, firewall rules, application binds, upstream dependencies, logging, and monitoring:

client -> resolver -> edge network -> load balancer -> application -> database

IPv6 can break at any layer while IPv4 continues working. That is why dual-stack requires paired verification, not a one-time "IPv6 enabled" checkbox.

Understand happy eyeballs

Modern clients race IPv4 and IPv6 connections rather than trying one protocol to failure. This is good for users and terrible for vague troubleshooting. A broken IPv6 route may produce intermittent latency instead of a clean outage because clients fall back at different times.

Test both explicitly instead of letting the algorithm choose:

curl -4 -v https://service.internal.example/
curl -6 -v https://service.internal.example/
dig A service.internal.example
dig AAAA service.internal.example

If -6 fails while -4 succeeds, the service is not healthy merely because users can still reach it.

Match listener behavior deliberately

On Linux, a wildcard IPv6 socket can sometimes accept IPv4-mapped connections depending on net.ipv6.bindv6only and how the application binds. This causes confusing listener output and uneven firewall behavior. Prefer explicit configuration:

listen 443 ssl;
listen [::]:443 ssl;

Then verify with socket-level truth, not process documentation:

ss -lntup | grep ':443'

A service bound only to 0.0.0.0 is not IPv6-reachable no matter how carefully DNS is configured.

Do not publish AAAA before the path is ready

DNS is a traffic steering control. Publishing an AAAA record tells capable clients to prefer or race the IPv6 path. If edge filtering, load balancer health checks, or application logging are not ready, you have created a shadow ingress. Stage the rollout:

1. Configure IPv6 connectivity and firewall parity.
2. Bind and internally test service listeners.
3. Validate monitoring, logging, and upstream reachability.
4. Publish AAAA for a low-risk service.
5. Expand after client traffic proves stable.

Field notes

  • Dual-stack doubles some failure modes; it does not halve operational responsibility.
  • "IPv6 is enabled" is meaningless without knowing whether return routing, source address selection, and service listeners are correct.
  • AAAA absence is a legitimate safety mechanism while you build parity. Remove it deliberately if rollback is needed.
  • Do not rely on end-user complaints as monitoring. Users on IPv4-only networks may never exercise the broken path.

Was this lesson helpful?

Sign in to rate