Node & Latency May 8, 2026

2026 DNS multiple A records vs SSH stickiness: what actually happens when your ProxyMac Mac mini hostname resolves to several IPv4 addresses in HK / JP / KR / SG / US

ProxyMac Engineering Team May 8, 2026 ~13 min read

Operators dialing into rented Apple Silicon M4 Mac mini fleets across Hong Kong, Japan, Korea, Singapore, and the United States sometimes run dig +short A mini.example.com, see four different IPv4 addresses, and panic that SSH will “rotate” mid-session like a load-balanced HTTP request. The reality is cleaner but still operationally sharp: DNS answers describe candidates; established TCP sockets encode the winner. This guide unpacks (1) why multi-record setups rarely hijack live shells, (2) when they do bite—mostly reconnect storms from CI—not keystrokes, (3) a four-column matrix comparing humans, bots, and bastions, (4) an eight-step stability runbook with numeric checkpoints (300 s TTL versus 24 h sessions), (5) interactions with AAAA + Happy Eyeballs from our IPv6 article, plus anchors into resolver failures, stable egress IP allowlists, and IPv6 / Happy Eyeballs. Read this before you blame “Asia routing” for behaviour that is pure DNS policy.

Established TCP is oblivious to later DNS TTL expirations

Once OpenSSH completes the three-way handshake to address 203.0.113.44, subsequent packets carry IP headers pointing there regardless of whether authoritative DNS later swaps another A record into rotation. Stub resolvers on your laptop stop participating until you open a new socket—typically a brand-new ssh invocation or a long-idle jump host that finally reconnects. Confusion spikes because load-balanced HTTPS genuinely reconnects often; SSH automation sometimes reconnects every 90 seconds, exposing rotation where humans never notice.

  • Quantitative anchor: internal telemetry shows roughly 18% of “SSH jumped regions overnight” tickets traced to orchestration reconnect loops, not carrier routing.
  • Failure mode: CI runners using ssh -o ConnectionAttempts=12 hammer distinct backends when packet loss coincides with DNS reordering—looks like flapping hosts.
  • Security nuance: host-key pinning still cares about names; multi-A without coherent PTR records triggers SOC alerts unrelated to latency.
Remember: shortening TTL from 3600 s to 60 s accelerates failover for new connects—it does not migrate existing TCP sessions.

Why infrastructure teams publish multiple A records at all

Geo-aware DNS, anycast fronts, or active/active clusters legitimately return multiple IPv4 addresses so clients spread load organically. Apple-centric CI workloads benefit when builders distribute across HK / JP / KR / SG / US PoPs without manual spreadsheets—yet deterministic pipelines demand deterministic endpoints. That tension is policy, not packet loss. Combine this section with MTR diagnostics when you must prove which backend answered first.

Four-column matrix: who feels DNS rotation pain first

Persona Typical reconnect interval Observes multi-A drift? Mitigation priority
Interactive developer shell Hours (single session) Rarely—unless VPN kills TCP Use stable bastion hostname
GitHub Actions → SSH deploy Every job (3–12 min) Often—each job resolves fresh Pin numeric IP or dedicated A-only name
rsync over SSH tunnel Single long transfer No mid-transfer hop Watch idle drops via keepalive guide
OpenClaw gateway northbound SSH Daemon reconnect loops Yes during outages Align with gateway recovery

Eight-step runbook for deterministic SSH destinations

  1. Inventory answers: run at least five sequential dig +short A hostname calls—note ordering differences.
  2. Log active peers: on macOS use lsof -nP -iTCP -sTCP:ESTABLISHED | grep ssh; on Linux substitute ss -tnp.
  3. Compare idle timeouts: align ServerAliveInterval with guidance from TCP keepalive article so NATs do not force stealth reconnects.
  4. Freeze automation: pause cron-driven reconnect scripts during DNS migrations—avoid amplifying partial failures.
  5. Create single-A bastion alias: example stable-mini-sg.provider.example pointing only at maintenance-approved addresses.
  6. Validate SaaS egress: if APIs whitelist IPs, cross-check egress stability whenever backends move.
  7. Document TTL math: record both authoritative TTL and local stub caching—common discrepancy is 30–120 s after overrides.
  8. Post-mortem template: capture timestamps, affected regions (HK / JP / KR / SG / US), and whether IPv6 played a role.
Avoid myth: Setting CheckHostIP no does not stop multi-A—it only relaxes IP pinning inside known_hosts. Combine with host-key hygiene instead of disabling checks blindly.

Dual stack reality: when AAAA racing beats IPv4 round-robin

RFC 8305 Happy Eyeballs can establish IPv6 while your manual dig inspection focused on IPv4 only—giving the illusion that “SSH chose the wrong A.” Capture both families: dig AAAA +short alongside dig A +short. If broken IPv6 paths exist, revisit Happy Eyeballs tuning before rewriting DNS zones.

When MTU black holes appear alongside DNS churn, walk PMTUD stalls—packet sizes near 1400 bytes often correlate with tunnel overlays, not multi-A.

FAQ

Will System Integrity Protection change DNS? No—SIP protects binaries, not resolver caches.

Does ProxyMac rotate addresses weekly? Only during published maintenance; subscribe to provider notices rather than inferring from TTL alone.

Should I use ssh -4? Temporarily during IPv6 investigations—not as a permanent mask for DNS architecture debt.

Why ProxyMac Mac mini pairs well with explicit routing discipline

Once you pin automation to predictable endpoints, Mac mini M4 rentals in HK / JP / KR / SG / US deliver consistent macOS behaviour for Xcode and automation without buying bare metal. Apple Silicon keeps idle power low enough to leave orchestration connected, while dual-stack networking stays testable from the same fleet. Compare footprint options on the pricing page, rehearse DNS scenarios via the help center, and confirm GUI workflows with VNC guidance when humans must verify addresses visually.

Pick a region first—then pin your DNS story

HK · JP · KR · SG · US · Apple Silicon M4