You can use ESXCLI to modify the setup of a preconfigured DNS server.

Specify one of the options listed in Connection Options for vCLI Host Management Commands in place of <conn_options>.

Procedure

  1. Display DNS properties for the specified server.
    1. List the host and domain name.
      esxcli <conn_options> system hostname get
    2. List available DNS servers.
      esxcli <conn_options> network ip dns server list
    3. List the DHCP settings for individual VMkernel NICs.
      esxcli <conn_options> network ip interface ipv4 get
      esxcli <conn_options> network ip interface ipv6 get
  2. If the DNS properties are set, and you want to change the DHCP settings, you must specify the virtual network adapter to use when overriding the system DNS.
    You can override the existing DHCP setting by using the following commands.
    esxcli <conn_options> network ip interface ipv4 set --type dhcp/none/static
    esxcli <conn_options> network ip interface ipv6 set --enable-dhcpv6=true/false