2V0-622 · 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 6.x host can be viewed remotely via the vicfg-dns vCLI command or directly on the host by reading /etc/resolv.conf.
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
(47 responses)- A91% (43)
- C2% (1)
- D6% (3)
Why each option
DNS settings on an ESXi 6.x host can be viewed remotely via the vicfg-dns vCLI command or directly on the host by reading /etc/resolv.conf.
The vicfg-dns command is a vCLI utility available on the vSphere Management Appliance that queries ESXi host DNS configuration remotely, providing both hostname and DNS server details.
The /etc/resolv.conf file on the ESXi host shell contains the nameserver entries and search domain settings configured for the host, making it a valid way to inspect DNS settings directly.
vicfg-dns is a vCLI command designed for remote management and is not available as a native command within the ESXi host's own shell; esxcli is the appropriate local CLI toolset on ESXi.
There is no /etc/dns.conf file on ESXi hosts; the correct file for DNS resolver configuration is /etc/resolv.conf.
Concept tested: ESXi host DNS configuration viewing methods
Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vcenterhost.doc/GUID-DC4E3E6E-B9A2-4F46-9F7F-F1C58E32EC49.html
Topics
Community Discussion
No community discussion yet for this question.