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.
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)- A91% (30)
- C6% (2)
- D3% (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.
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.
/etc/interfaces (or /etc/network/interfaces) configures network interfaces and their IP addresses, not DNS resolution for domain names.
/etc/hosts.allow is part of TCP Wrappers, which controls access to network services based on source IP addresses, not name resolution.
/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
Community Discussion
No community discussion yet for this question.