Skip to content

Lesson 8 of 9 · 28m

Diagnosing DNS, Routing, and Path MTU Differences

Separate name-resolution steering, source selection, asymmetric routing, and fragmentation failures when IPv6 behaves differently from IPv4.

The hardest IPv6 incidents are partial. One user population works, another stalls; SSH connects, HTTPS hangs; one cloud region is clean, another blackholes traffic. These are rarely "IPv6 is flaky." They are specific differences in DNS answers, routing, source selection, and path MTU behavior. Debug them as separate layers.

Prove which protocol the client is choosing

Never assume a hostname test means IPv6. Force each family:

curl -4 -sS -o /dev/null -w '%{http_code} %{remote_ip}
' https://service.internal.example/
curl -6 -sS -o /dev/null -w '%{http_code} %{remote_ip}
' https://service.internal.example/

Then inspect DNS:

dig A service.internal.example +short
dig AAAA service.internal.example +short

A client may use a different resolver, search domain, VPN DNS server, or synthesized answer path than the server you are testing from. Capture resolver context before blaming routing.

Source address selection changes policy outcomes

A host with several addresses chooses a source using destination scope, prefix policy, address lifetime, and privacy status. Inspect the chosen source:

ip -6 route get 2606:4700:4700::1111

If firewalls or upstream ACLs expect a stable infrastructure address but the host selects a temporary privacy address, outbound connections may fail only for protected destinations. On servers, prefer stable predictable source addresses or explicitly bind application behavior when the design requires it.

Routing must work in both directions

A traceroute shows one forward-path viewpoint. Return path failures are common in segmented networks:

mtr -6 -n --report-wide 2001:db8:80::53

Compare the destination network's route back to the source prefix. A router can forward traffic outward while an upstream access list, missing aggregate, or cloud route table prevents the reply. Dual-stack masks this because IPv4 succeeds independently.

Path MTU failure has a signature

IPv6 routers do not fragment packets in transit. When a packet is too large, the router should return ICMPv6 packet-too-big and the sender must adapt. If those messages are filtered, small requests often work while large TLS records or data transfers stall.

Test deliberately where the environment permits:

ping -6 -c3 -s 1452 -M do 2001:db8:80::53
ping -6 -c3 -s 1280 -M do 2001:db8:80::53

The exact numbers depend on tunnel and encapsulation overhead. If lower sizes pass and higher sizes vanish, inspect ICMPv6 filtering and tunnel MTU before rewriting the application.

Field notes

  • Capture the resolver identity, route get output, neighbor state, and a packet capture showing SYNs, retransmissions, ICMPv6 errors, and TLS progress.
  • Happy eyeballs can hide a broken family behind a working one; force protocol selection during diagnosis.
  • A successful TCP connect does not prove PMTUD works. Data transfer must also pass.
  • NAT64 and DNS64 alter what DNS evidence means; identify whether answers are native or synthesized.
  • Do not raise MTU randomly to fix stalls. Find whether the tunnel or filter is discarding too-big signaling.

Was this lesson helpful?

Sign in to rate