nerdexam
CompTIACompTIA

XK0-005 · Question #635

XK0-005 Question #635: Real Exam Question with Answer & Explanation

The correct answer is B: Remove the entry for portal.comptia.org from the local hosts file.. 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.5

Troubleshooting

Question

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?

Options

  • AUpdate the name server in resolv.conf to use an external DNS server.
  • BRemove the entry for portal.comptia.org from the local hosts file.
  • CAdd a network route from the 10.10.10.0/24 to the 192.168.0.0/16.
  • DClear the local DNS cache on the workstation and rerun the host command.

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.

Topics

#Linux Troubleshooting#Name Resolution#Hosts File#Networking

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions