ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 199 - XK0-005 discussion

Report
Export

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:

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

A.
Update the name server in resolv. conf to use an external DNS server.
Answers
A.
Update the name server in resolv. conf to use an external DNS server.
B.
Remove the entry for portal . comptia.org from the local hosts file.
Answers
B.
Remove the entry for portal . comptia.org from the local hosts file.
C.
Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.
Answers
C.
Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.
D.
Clear the local DNS cache on the workstation and rerun the host command.
Answers
D.
Clear the local DNS cache on the workstation and rerun the host command.
Suggested answer: B

Explanation:

The best task to perform to resolve this issue is B. Remove the entry for portal.comptia.org from the local hosts file. This is because the local hosts file has a wrong entry that maps portal.comptia.org to 10.10.10.55, which is different from the actual IP address of 192.168.1.55 that is returned by the DNS server. This causes a mismatch and prevents the workstation from accessing the website. By removing or correcting the entry in the hosts file, the workstation will use the DNS server to resolve the domain name and access the website successfully.

To remove or edit the entry in the hosts file, you need to have root privileges and use a text editor such as vi or nano. For example, you can run the command:

sudo vi /etc/hosts

and delete or modify the line that says:

10.10.10.55 portal.comptia.org

Then save and exit the file.

asked 02/10/2024
Felipe Santos Cardoso
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first