Dynamic DNS (DDNS) causes dynamic update on the DNS Server with ESXi hostname as VTEP IP instead of Management IP
search cancel

Dynamic DNS (DDNS) causes dynamic update on the DNS Server with ESXi hostname as VTEP IP instead of Management IP

book

Article ID: 373594

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

DNS entry for the ESXi host changed from Management IP to NSX VTEP IP.

Cause

DHCP server was configured with "Dynamically update DNS records only if requested by the DHCP clients"

ESXi host advance setting's configured with PreferredHostName indicates the ESXi host will participate in DDNS. (Dynamic DNS)

By default, the Advance Settings of ESXi host for PreferredHostName is set to blank:

 Path: /Misc/PreferredHostName
   Type: string
   Int Value: 0
   Default Int Value: 0
   Min Value: 0
   Max Value: 0
   String Value:
   Default String Value:
   Valid Characters: **
   Description: Preferred Host name
   Host Specific: false
   Impact: none

 

 

Resolution

Validate if PreferredHostName is configured in ESXi Advanced Settings:

esxcli system settings advanced list | grep -i PreferredHostName -A 11

To set the PreferredHostName settings back to default use the below command:

esxcli system settings advanced set -o /Misc/PreferredHostName -d

output:

   Path: /Misc/PreferredHostName
   Type: string
   Int Value: 0
   Default Int Value: 0
   Min Value: 0
   Max Value: 0
   String Value:
   Default String Value:
   Valid Characters: **
   Description: Preferred Host name
   Host Specific: false
   Impact: none

To set the PreferredHostName settings use the below command:

esxcli system settings advanced set -o /Misc/PreferredHostName -s esxhostname.example.com

output:
   Path: /Misc/PreferredHostName
   Type: string
   Int Value: 0
   Default Int Value: 0
   Min Value: 0
   Max Value: 0
   String Value: esxhostname.example.com
   Default String Value:
   Valid Characters: **
   Description: Preferred Host name
   Host Specific: false
   Impact: none

Additional Information

NSX-HOST-TEP