Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-006 Exam - Topic 3 Question 13 Discussion

An administrator is investigating the reason a Linux workstation is not resolving the website http://www.comptia.org. The administrator executes some commands and receives the following output:Which of the following is the most likely cause?
A) The static entry needs to be removed from /etc/hosts.
B) The remote website does not support IPv6, and the workstation requires it.
C) The firewall needs to be modified to allow outbound HTTP and HTTPS.
D) The nameserver in /etc/resolv.conf needs to be updated to 8.8.8.8

CompTIA XK0-006 Exam - Topic 3 Question 13 Discussion

Actual exam question for CompTIA's XK0-006 exam
Question #: 13
Topic #: 3
[All XK0-006 Questions]

An administrator is investigating the reason a Linux workstation is not resolving the website http://www.comptia.org. The administrator executes some commands and receives the following output:

Which of the following is the most likely cause?

Show Suggested Answer Hide Answer
Suggested Answer: A

When troubleshooting name resolution issues in Linux, /etc/hosts entries take precedence over DNS lookups. The workstation's /etc/hosts file contains the line:

CopyEdit

104.18.99.101 www.comptia.org

This means any attempt to access www.comptia.org will resolve to 104.18.99.101, regardless of the real DNS response. However, both dig and nslookup show the correct IP as 104.18.16.29. Because the local /etc/hosts entry overrides DNS, and the hardcoded IP is either incorrect or unreachable, all network traffic to www.comptia.org will fail or not reach the intended destination, resulting in the observed connectivity issue (Destination Host Unreachable).

Other options:

B . The lack of IPv6 support is irrelevant since the host is using IPv4 and the DNS queries for IPv4 (A record) are successful.

C . The firewall would block all HTTP/HTTPS connections, but the error shown is a host unreachable, not a port-specific issue.

D . The nameserver is working; both dig and nslookup queries succeed and return the correct A record.


CompTIA Linux+ Study Guide: Exam XK0-006, Sybex, Chapter 8: 'Networking Fundamentals', Section: 'Troubleshooting Name Resolution'

CompTIA Linux+ XK0-006 Objectives, Domain 2.0: Networking

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel