DNS resolution failures in this context typically occur due to one of the following reasons:
To verify and resolve the DNS resolution failure, perform the following troubleshooting steps on the affected node:
Step 1: Verify Forward Lookup using dig Run the following command to test forward DNS resolution.
Verify that the output contains the correct IP in the ANSWER SECTION.
root@edge01:~# /usr/bin/dig nsx-mngr-01.#.#
; <<>> DiG 9.18.28-0ubuntu0.22.04.1-Ubuntu <<>> nsx-mngr-01.#.#
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15328
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;nsx-mngr-01.#.#. IN A
;; ANSWER SECTION:
nsx-mngr-01.#.#. 3600 IN A 192.#.#.#
;; Query time: 0 msec
;; SERVER: #.#.#.10#53(192.#.#.#) (UDP)
;; WHEN: Thu Feb 20 14:44:32 UTC 2025
;; MSG SIZE rcvd: 67
Step 2: Verify Reverse Lookup using dig Run the following command to test reverse DNS resolution.
Verify that the output contains the correct FQDN in the ANSWER SECTION.
Run the /usr/bin/dig -x <IP-Address> command, and verify the output in the "Answer" section is correct:
root@edge01:~# /usr/bin/dig -x 192.#.#.#
; <<>> DiG 9.18.28-0ubuntu0.22.04.1-Ubuntu <<>> -x 192.#.#.#
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30823
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;10.#.#.#.in-addr.arpa. IN PTR
;; ANSWER SECTION:
10.#.#.#.#. 3600 IN PTR controlcenter.#.#.
;; Query time: 4 msec
;; SERVER: #.#.#.10#53(#.#.#.#) (UDP)
;; WHEN: Thu Feb 20 15:02:32 UTC 2025
;; MSG SIZE rcvd: 94
Step 3: Analyze and Remediate Connectivity
Note: The local /etc/hosts file is not used for DNS resolution in NSX-T Data Center 3.2.3 or higher.