2V0-621D · 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. The DNS settings of an ESXi host can be viewed using the vicfg-dns command from a vSphere CLI client or by directly inspecting the standard /etc/resolv.conf file on the ESXi host's console.
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
(28 responses)- A86% (24)
- C4% (1)
- D11% (3)
Why each option
The DNS settings of an ESXi host can be viewed using the vicfg-dns command from a vSphere CLI client or by directly inspecting the standard /etc/resolv.conf file on the ESXi host's console.
The vicfg-dns command is part of the vSphere Command-Line Interface (vCLI), which allows administrators to manage ESXi host settings, including DNS configuration, remotely from a vSphere Management Appliance or other vCLI-enabled client. This command provides a structured way to retrieve current DNS server and search domain settings.
ESXi hosts, being based on a Linux kernel, use the standard Unix/Linux convention of storing DNS resolver configuration in the /etc/resolv.conf file. Viewing the contents of this file directly from the ESXi shell provides a direct and accurate way to inspect the configured DNS servers and search domains.
The vicfg-dns command is part of the vSphere CLI and is designed for remote management of ESXi hosts from a client system like VMA, rather than being executed directly on the ESXi host's console for local configuration.
The /etc/dns.conf file is not a standard configuration file used by ESXi hosts for storing DNS settings; the correct file for DNS resolver configuration on ESXi is /etc/resolv.conf.
Concept tested: ESXi DNS configuration viewing methods
Source: https://docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.cli.doc/cli_config_host.2.3.html
Topics
Community Discussion
No community discussion yet for this question.