The vicfg-dns command lists and specifies the DNS configuration of your ESXi host. You can call the command without command-specific options to list the existing DNS configuration.

You can also use esxcli network ip dns for DNS management.


If you try to change the host or domain name or the DNS server on hosts that use DHCP, an error results.

In network environments where a DHCP server and a DNS server are available, ESXi hosts are automatically assigned DNS names.

In network environments where automatic DNS is not available or not desirable, you can configure static DNS information, including a host name, primary name server, secondary name server, and DNS suffixes.