← Back to Engineering Blog
πŸ—“οΈ Sep 14, 2021⏱️ 4 min read

DNS & Reverse PTR Integrity: Why Missing PTR Records Break NSX-T Manager Federation

How missing reverse DNS PTR records triggered mutual TLS handshake failures during multi-site NSX-T Global Manager Federation.

πŸŽ™οΈ Listen to ArticleREADY
AI Audio Synthesis Narrator
Share Post:

β€œYou can configure flawless BGP routing and 10Gbps line-rate IPsec tunnels, but if your reverse DNS PTR records return NXDOMAIN, NSX-T Global Manager Federation will silently abort your cluster sync during mutual TLS validation.”

In September 2021, during my tenure as a Systems Integration Advisor at NTT Data, we were architecting a high-availability disaster recovery solution for a financial client.

The design featured NSX-T Global Manager Federation spanning two physical datacenters: Primary in Mumbai and Disaster Recovery in Bengaluru.

Federation allows a single pair of Global Managers to manage security policies and stretched Tier-0 gateways across both physical sites.

The deployment proceeded smoothly through appliance bootstrapping.

Then we hit the registration step.


The 90% Federation Registration Hang

To federate a site, the Global Manager (nsx-gm01.sddc.lab) connects to the Local Manager (nsx-lm-mumbai.sddc.lab), exchanges X.509 certificate fingerprints, and establishes an encrypted management channel.

We launched the registration wizard in the NSX-T Manager UI.

The progress bar climbed to 90%, paused for two minutes, and failed with a red alert:

# NSX-T Manager Federation Error Log
Error: Registration of Local Manager 'nsx-lm-mumbai.sddc.lab' failed.
Reason: TLS Certificate Validation Failed - Hostname Verification Mismatch (mTLS Handshake Aborted).

The client’s internal sysadmin immediately blamed the SSL certificates. He assumed the custom enterprise CA certificate we had generated was missing key extensions.


The Mess: The 14-Hour Certificate Regeneration Loop

The sysadmin spent 14 hours in a loop: generating new OpenSSL CSRs, adding Subject Alternative Names (SANs), re-signing certificates on the Microsoft Active Directory Certificate Authority (AD CS), and re-installing SSL keys across all management nodes.

Every single attempt failed at the exact same 90% mark with the exact same mTLS Handshake Aborted error.

The team was preparing to delete the appliances and start the entire multi-site deployment from scratch.

I decided to bypass the Web UI and analyze the raw mgr.log debug trace during the mutual TLS handshake:

# Tailing the NSX-T Global Manager debug log during registration
tail -f /var/log/syslog | grep -i "mTLS\|certificate\|DNS"
# Output:
# 1) Received connection from IP: 10.100.10.20
# 2) Executing reverse PTR lookup for 10.100.10.20 ...
# 3) Reverse PTR Result: NXDOMAIN (DNS Name Resolution Failed)
# 4) Certificate SAN 'nsx-lm-mumbai.sddc.lab' != PTR 'NXDOMAIN' -> Rejecting mTLS Connection!

The smoking gun was exposed in step 3.

During mutual TLS (mTLS) authentication, the Global Manager extracts the socket IP (10.100.10.20) of the connecting Local Manager, issues a reverse DNS PTR lookup (10.10.100.in-addr.arpa), and compares the resulting hostname against the SAN attribute in the presented X.509 certificate.

The sysadmin had created forward A records (nsx-lm-mumbai.sddc.lab -> 10.100.10.20), but the DNS team had neglected to create the reverse PTR zone on the corporate Windows DNS server!

Because the reverse PTR lookup returned NXDOMAIN, the Global Manager assumed a Man-In-The-Middle (MITM) IP-spoofing attack was in progress and aborted the mTLS handshake.

The problem wasn’t SSL. The problem was an incomplete DNS zone.


The Solution: Pre-Flight Bidirectional DNS Validation

We logged into the Windows DNS Server, created the reverse lookup zone 10.100.in-addr.arpa, and added explicit PTR records for all Global and Local Manager appliances.

# Windows DNS PowerShell cmdlet to add missing Reverse PTR records
Add-DnsServerResourceRecordPTR -ZoneName "100.10.in-addr.arpa" -Name "20" -PTRDomainName "nsx-lm-mumbai.sddc.lab"

To prevent future deployment stalls, we created a mandatory Pre-Flight DNS Verification Script that engineers must run before bootstrapping any enterprise SDDC cluster.

#!/bin/bash
# Pre-Flight Reverse DNS PTR Validation Script
HOSTS=("nsx-gm01.sddc.lab" "nsx-gm02.sddc.lab" "nsx-lm-mumbai.sddc.lab" "nsx-lm-bengaluru.sddc.lab")

for host in "${HOSTS[@]}"; do
  IP=$(dig +short $host)
  if [ -z "$IP" ]; then
    echo "CRITICAL: Forward A record missing for $host"
    exit 1
  fi

  PTR=$(dig +short -x $IP | sed 's/\.$//')
  if [ "$PTR" != "$host" ]; then
    echo "CRITICAL MISMATCH: Host '$host' (IP: $IP) resolves reverse PTR to '$PTR'!"
    exit 1
  fi
  echo "SUCCESS: $host <-> $IP (Bi-directional DNS verified)"
done

Once the PTR record was registered, we clicked Retry Registration in the Global Manager console. The mTLS handshake completed in sub-seconds, and federation sync reached 100% success.


The Impact

  • Multi-Site Federation Restored: Successfully registered Primary and DR Local Managers to the Global Manager cluster.
  • Prevented Appliance Re-installs: Saved the team from unnecessarily blowing away and re-deploying 8 management appliances.
  • Automated Verification: Added mandatory bi-directional DNS PTR validation into the pre-flight checklist for all cloud deployments.

Key Takeaway

Mandate Reverse PTR DNS Verification Before Bootstrapping SDDC Appliances.

Never attempt multi-site appliance federation or mutual TLS (mTLS) clustering without verifying bi-directional DNS. Forward A records are only half the requirement; enterprise management engines issue reverse PTR lookups to validate certificate SAN attributes and prevent IP spoofing attacks.


Architecture and decisions: mine. Debugging sessions at odd hours: mine. AI assistance: structure, syntax, first draft. β€” Sachin

SKS

Sachin Kumar Sharma

Associate Director (Infrastructure & Cloud Architecture Strategy) | 20+ Yrs Exp

Architecting resilient multi-cloud enterprise landing zones, SDN overlay fabrics, DevSecFinOps automation pipelines, and autonomous Agentic AI platforms.

πŸ“¬

πŸ“¬ Stay Updated on Tech Releases

Sign up to get notified when I publish new production war stories, agentic AI architecture blueprints, or open-source infrastructure tools.

⚑ Theme Adaptive Shift
Switching layouts matching domain reading affinity...