CompTIA
XK0-005 · Question #10840
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?
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
(46 responses)- A74% (34)
- B7% (3)
- C4% (2)
- D15% (7)
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
#Linux networking#Name resolution#/etc/hosts#Troubleshooting
Community Discussion
No community discussion yet for this question.