nerdexam
CompTIA

XK0-005 · Question #825

A Linux administrator receives a ticket stating that end users are unable to access the company's internal cloud server. The administrator executes the following command: bash ping usl.com Result…

The correct answer is A. /etc/resolv.conf. The 'ping: cannot resolve usl.com: Unknown Host' error indicates a DNS resolution failure, meaning the system cannot translate the domain name usl.com into an IP address.

Troubleshooting

Question

A Linux administrator receives a ticket stating that end users are unable to access the company's internal cloud server. The administrator executes the following command:

bash ping usl.com Result:

ping: cannot resolve usl.com: Unknown Host Which of the following files needs to be modified to allow end users to access usl.com?

Options

  • A/etc/resolv.conf
  • B/etc/interfaces
  • C/etc/hosts.allow
  • D/etc/hostname

How the community answered

(33 responses)
  • A
    91% (30)
  • C
    6% (2)
  • D
    3% (1)

Why each option

The 'ping: cannot resolve usl.com: Unknown Host' error indicates a DNS resolution failure, meaning the system cannot translate the domain name usl.com into an IP address.

A/etc/resolv.confCorrect

The /etc/resolv.conf file specifies the IP addresses of DNS (Domain Name System) servers that the system should query to resolve domain names to IP addresses. An 'Unknown Host' error directly points to a misconfiguration or absence of correct DNS server entries in this file.

B/etc/interfaces

/etc/interfaces (or /etc/network/interfaces) configures network interfaces and their IP addresses, not DNS resolution for domain names.

C/etc/hosts.allow

/etc/hosts.allow is part of TCP Wrappers, which controls access to network services based on source IP addresses, not name resolution.

D/etc/hostname

/etc/hostname stores the system's own hostname and does not impact the resolution of other domain names.

Concept tested: DNS resolution configuration in Linux

Source: https://man7.org/linux/manpages/man5/resolv.conf.5.html

Topics

#DNS Resolution#Network Configuration#Linux Troubleshooting#System Files

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice