2V0-621 · Question #146
What are two ways to view the DNS settings for an ESXi 6.x host? (Choose two.)
The correct answer is A. Use the vicfg-dns command from the vSphere Management Appliance. B. View the /etc/resolv.conf file on the ESXi host. DNS settings on an ESXi host can be viewed via the vicfg-dns vCLI command run from the vSphere Management Appliance, or by reading the /etc/resolv.conf file directly on the host.
Question
What are two ways to view the DNS settings for an ESXi 6.x host? (Choose two.)
Options
- AUse the vicfg-dns command from the vSphere Management Appliance.
- BView the /etc/resolv.conf file on the ESXi host.
- CUse vicfg-dns command on the ESXi host.
- DView the /etc/dns.conf file on the ESXi host.
How the community answered
(24 responses)- A92% (22)
- C4% (1)
- D4% (1)
Why each option
DNS settings on an ESXi host can be viewed via the vicfg-dns vCLI command run from the vSphere Management Appliance, or by reading the /etc/resolv.conf file directly on the host.
vicfg-dns is a vSphere CLI command intended to run on a remote management station such as the vSphere Management Appliance, and it queries and displays the DNS configuration of a target ESXi host.
ESXi uses the standard Linux /etc/resolv.conf file to store DNS nameserver and search domain entries, which can be read directly from the host's shell.
vicfg-dns is a vCLI tool designed to run on a remote management workstation or appliance, not natively on the ESXi host shell itself.
There is no /etc/dns.conf file on ESXi; the correct file containing DNS resolver configuration is /etc/resolv.conf.
Concept tested: ESXi host DNS configuration inspection methods
Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vcli.doc/GUID-vicfg-dns.html
Topics
Community Discussion
No community discussion yet for this question.