exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 111 discussion

Actual exam question from CompTIA's XK0-005
Question #: 111
Topic #: 1
[All XK0-005 Questions]

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

The administrator runs grep db.example.com /etc/hosts and receives the following output:

Given this scenario, which of the following should the administrator do to address this issue?

  • A. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
  • B. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
  • C. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
  • D. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ryanzou
Highly Voted 2 years, 6 months ago
Selected Answer: D
Why not D?
upvoted 9 times
Veteran903
2 years, 5 months ago
D is the right answer
upvoted 8 times
...
...
Nvoid
Highly Voted 2 years, 5 months ago
Selected Answer: D
D is correct.
upvoted 5 times
...
bc1235813
Most Recent 1 year, 1 month ago
None of the solutions provide a fix for the fact that remote systems are seeing the wrong ip address. The /etc/hosts file has no bearing on remote access. There is nothing that will fix this locally. The other systems need their /etc/hosts files fixed or DNS needs to be fixed.
upvoted 1 times
97155f3
5 months, 2 weeks ago
the better answer is to remove everything from /etc/hosts, except the local hosts info and rely on dns. static entries for name resolution aren’t optimal.
upvoted 1 times
...
97155f3
5 months, 2 weeks ago
cat /etc/nsswitch.conf hosts: files dns
upvoted 1 times
...
...
KnifeClown1
2 years, 3 months ago
Selected Answer: D
D obviously
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago