BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-006 Exam - Topic 3 Question 13 Discussion

Posted by Roosevelt on Jul 21, 2026 at 08:09 AM

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?

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

Get Premium XK0-006 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
LE
Leila 3 months ago
C seems right. If the firewall is blocking, we won't reach the site at all.
GE
Gennie 3 months ago
I feel like D is the answer. Updating to 8.8.8.8 could fix DNS issues.
RU
Rusty 3 months ago
I think it's A. The static entry might be blocking the correct resolution.
WI
Wilda 3 months ago
C could be a factor too, but I lean towards A.
FR
Freida 3 months ago
Wait, why would the nameserver need to be updated?
SK
Skye 3 months ago
B seems unlikely, most sites still support IPv4.
EL
Elouise 4 months ago
Totally agree with A! Had the same issue before.
AV
Avery 4 months ago
I think it's definitely A. Static entries can mess things up.
PE
Pearlene 4 months ago
I feel like firewall settings could definitely block access, but I can't recall if that would affect just HTTP and HTTPS traffic.
TH
Theron 4 months ago
I practiced a similar question where updating the nameserver in /etc/resolv.conf fixed the issue, so I’m leaning towards option D.
LA
Laurel 4 months ago
I’m not sure, but I think if the workstation is set to use IPv6 and the site doesn’t support it, that could lead to problems too.
KE
Kent 4 months ago
I remember something about the /etc/hosts file causing issues with name resolution, so option A could be a possibility.
0/2000 characters

Save Cancel