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:
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
Reviewed: B and C are correct
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
As an alternative to esxcli, you can also use the vicfg-dns command from the vMA or vSphere CLI. Running the command without any parameters will display a host’s DNS configuration:
http://buildvirtual.net/troubleshoot-esxi-host-dns-and-routing-related-issues/
A & B are correct
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”
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.
Sorry, AB
voogle is correct, vicfg-dns is run through vCLI against (not “on”) an ESXi host. UGH
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.
I agree vicfg-dns command does not exist on esxi host. So A is the closest to the correct
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
To clarify to view DNS INFO its “”esxcli network ip dns server list””
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.