What are two ways to view the DNS settings for an ESXi 6.x host?

What are two ways to view the DNS settings for an ESXi 6.x host? (Choose two.)

What are two ways to view the DNS settings for an ESXi 6.x host? (Choose two.)

A.
Use the vicfg-dns command from the vSphere Management Appliance.

B.
View the /etc/resolv.conf file on the ESXi host.

C.
Use vicfg-dns command on the ESXi host.

D.
View the /etc/dns.conf file on the ESXi host.

Explanation:
Explanation/Reference:



Leave a Reply 13

Your email address will not be published. Required fields are marked *


Aegra

Aegra

A and B correct.

vicfg-dns command lists and specifies the DNS configuration of your ESX/ESXi hosst.

ESXi OS shares some common commands and config file with Linux OS, like resolv.conf The file resolv.conf typically contains directives that specify the default search domains

https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vcli.ref.doc/vicfg-dns.html
https://en.wikipedia.org/wiki/Resolv.conf

Aegra

Aegra

Reviewed: B and C are correct

Dasher

Dasher

I think any reference to the vSphere Management Appliance probably indicates an incorrect answer since it is supposed to be called the vSphere Management Assistant.

B & C

SomeDude

SomeDude

B and C

Why C? https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vcli.examples.doc/cli_manage_networks.11.8.html#1159219

“The vicfg-dns command lists and specifies the DNS configuration of your ESXi host”

voogle

voogle

AC

Neither A nor C are 100% correct.
vicfg-dns command does not exist on esxi host.

vSphere Management Appliance does not exist.
But A is the closer answer because vMA could be called an appliance, while there is no way one can run that command ON an ESXi host.

voogle

voogle

Sorry, AB

SomeDude

SomeDude

voogle is correct, vicfg-dns is run through vCLI against (not “on”) an ESXi host. UGH

dude who just went through VMware training

dude who just went through VMware training

this is incorrect; the documentation lists vicfg-dns the same execution method as with esxcli; the vCLI reference is just that, a reference. The proper answer is B and C, as there is no vSphere Management Appliance in existence.

Vivek

Vivek

I agree vicfg-dns command does not exist on esxi host. So A is the closest to the correct

Dude

Dude

Its A and B, as for C depreciated on 6.x and D is not valid syntax

A good reference is here at https://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2Fcli_overviews.3.3.html

Dude

Dude

To clarify to view DNS INFO its “”esxcli network ip dns server list””

duede dueudueudee

duede dueudueudee

this is incorrect; the documentation equally lists both commands without a flag for deprecation.

“You can set the DNS configuration with ESXCLI or with vicfg-dns.”

Additionally, there is no such thing as a vSphere Management Appliance.