CompTIA Linux+ (XK0-005) — Question 212

A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The administrator runs a few commands and receives the following output:

# cat /etc/hosts
10.10.10.55 portal.comptia.org

# host portal.comptia.org
portal.comptia.org has address 192.168.1.55

#cat /etc/resolv.conf
nameserver 10.10.10.5

Which of the following tasks should the administrator perform to resolve this issue?

Answer options

Correct answer: B

Explanation

The correct answer is B because the entry in the local hosts file is causing a conflict with the DNS resolution. The hosts file entry points to an incorrect IP address (10.10.10.55) instead of the valid one (192.168.1.55) returned by the DNS query. The other options do not address the root cause of the issue related to the hosts file entry.