You can use ESXCLI
to modify the setup of a preconfigured DNS server.
Specify one of the options
listed in
Connection Options for ESXCLI Host Management Commands
in place of
<conn_options>
.
Procedure
-
Display DNS
properties for the specified server.
-
List the host and
domain name.
esxcli <conn_options> system hostname get
-
List available DNS
servers.
esxcli <conn_options> network ip dns server list
-
List the DHCP
settings for individual VMkernel NICs.
esxcli <conn_options> network ip interface ipv4 get
esxcli <conn_options> network ip interface ipv6 get
-
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