nerdexam
CompTIA

XK0-005 · Question #890

An administrator is investigating the reason a Linux workstation is not resolving the website output: Which of the following is the most likely cause?

The correct answer is A. The static entry needs to be removed from /etc/hosts. Because /etc/hosts takes precedence over DNS, the incorrect IP (104.18.99.101) in your hosts file is being used - causing the unreachable error - even though DNS returns a different, valid address. Removing or correcting that entry lets the workstation resolve via DNS properly.

Troubleshooting

Question

An administrator is investigating the reason a Linux workstation is not resolving the website output:

Which of the following is the most likely cause?

Exhibit

XK0-005 question #890 exhibit

Options

  • AThe static entry needs to be removed from /etc/hosts.
  • BThe remote website does not support IPv6, and the workstation requires it.
  • CThe firewall needs to be modified to allow outbound HTTP and HTTPS.
  • DThe nameserver in /etc/resolv.conf needs to be updated to 8.8.8.8.

How the community answered

(47 responses)
  • A
    85% (40)
  • B
    9% (4)
  • C
    4% (2)
  • D
    2% (1)

Explanation

Because /etc/hosts takes precedence over DNS, the incorrect IP (104.18.99.101) in your hosts file is being used - causing the unreachable error - even though DNS returns a different, valid address. Removing or correcting that entry lets the workstation resolve via DNS properly.

Topics

#Name resolution#Hosts file#DNS#Networking

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice