nerdexam
Broadcom-VMware

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.

Section 2 – Configure and Administer vSphere 6.5 Networking

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)
  • A
    91% (43)
  • C
    2% (1)
  • D
    6% (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.

AUse the vicfg-dns command from the vSphere Management Appliance.Correct

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.

BView the /etc/resolv.conf file on the ESXi host.Correct

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.

CUse vicfg-dns command on the ESXi host.

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.

DView the /etc/dns.conf file on the ESXi host.

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

#DNS settings#vicfg-dns#resolv.conf#ESXi host network config

Community Discussion

No community discussion yet for this question.

Full 2V0-622 Practice