Modify NSX Edge DNS configuration information by command line
search cancel

Modify NSX Edge DNS configuration information by command line

book

Article ID: 370880

calendar_today

Updated On:

Products

VMware NSX VMware NSX VMware NSX-T Data Center VMware NSX for vSphere VMware NSX Data Center for vSphere

Issue/Introduction

An error message may occur when attempting to Edit Settings of an NSX Edge server, preventing the user from making modifications to DNS Servers. 

An example error message when trying to "Change Node Settings" for a given edge server might state: 

 [Fabric] Network Interface '<UUID> is either an overlay logical switch or in an unacessible Transport zone. Only accessible VLAN logical switches are supported. (Error code: 16031)




Resolution

  • Log into the Edge server with SSH as admin. If logged in as root, type: su admin
  • Run this command to check the current DNS IPs:  get name-servers
  • To add a new name server, run this command: set name-server <DNS_IP>
     *Note that only 3 may be configured at a time, so deletions may need to be done first to make space
  • To remove an unwanted DNS server, use command:  del name-server <DNS_IP>
  • Once changes are complete, sync the Edge settings in the NSX Manager UI.
    • Navigate to System > Fabric > Nodes
    • Select the box next to the Edge Node(s)
    • Click on Actions and then select Sync Edge Configuration

Additional Information