exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 28 discussion

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

A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hosts and receives the following output:
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?

  • A. Modify the /etc/hosts file, and add the ipv6 localhost entry to the file.
  • B. Modify the /etc/hosts file, and add the ::1 localhost entry to the file.
  • C. Modify the /etc/hosts file, and add the ipv4 localhost entry to the file.
  • D. Modify the /etc/hosts file, and add the 0.0.0.0 localhost entry to the file.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
bode
Highly Voted 5 years, 2 months ago
The answer is B ::1 is IPv6 equivalent of 127.0.0.1 in IPv4
upvoted 22 times
No way the answer B It is C….. I asked somebody expert with Linux and network
upvoted 1 times
Ya5
2 years, 11 months ago
take a deep breath
upvoted 2 times
...
...
...
raquae
Highly Voted 4 years, 6 months ago
why are so many of the answers wrong? Who is really updating the answers? Too many of the questions' answers are wrong and misleading. Thank you exam prep for the questions, I really appreciate this however.
upvoted 12 times
...
pinkcyberpenguin
Most Recent 5 years ago
The answer is B. http://man7.org/linux/man-pages/man5/hosts.5.html
upvoted 10 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 ...