Update DNS Server IP address of vCenter Server Appliance using Appliance Shell
search cancel

Update DNS Server IP address of vCenter Server Appliance using Appliance Shell

book

Article ID: 423207

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

DNS server IP addresses configured of vCenter Server Appliance can be updated using Appliance Shell as an alternative to VAMI.

Environment

VMware vCenter Server 7.0

VMware vCenter Server 8.0

Resolution

  1. Login to vCenter Server Appliance with root credentials via SSH.

    Note: If bash shell (#) is the active and default, access the appliance shell (Command>) by entering:

         appliancesh

  2. Run the below command to get the current DNS configuration:

    com.vmware.appliance.version1.networking.dns.servers.get

  3. Run the below command to set the DNS servers:

    com.vmware.appliance.version1.networking.dns.servers.set --mode  static --server <DNS Server IP Address>

    Note: When adding multiple DNS servers, enter the next IP address directly after the comma (,) following the first DNS Server IP address, without including any spaces.

    Example: When DNS Server IP Address 1 is AAA.AAA.AAA.AAA and DNS Server IP Address 2 is BBB.BBB.BBB.BBB

          Command> com.vmware.appliance.version1.networking.dns.servers.set --mode  static --server AAA.AAA.AAA.AAA,BBB.BBB.BBB.BBB

          Config:
               Mode: static
               Servers: AAA.AAA.AAA.AAA BBB.BBB.BBB.BBB

  4. Run the following command to verify that the DNS Server IP address has been changed to the new IP address:

    com.vmware.appliance.version1.networking.dns.servers.get



Additional Information