nerdexam
CompTIA

LX0-101 · Question #142

Which of the following looks like a correct entry in the /etc/hosts file.

The correct answer is D. 127.0.0.1 localhost.localdomain localhost. See the full explanation below for the reasoning.

Question

Which of the following looks like a correct entry in the /etc/hosts file.

Options

  • Alocalhost 127.0.0.1 localhost.localdomain
  • Blocalhost.localdomain localhost 127.0.0.1
  • Clocalhost localhost.localdomain 127.0.0.1
  • D127.0.0.1 localhost.localdomain localhost
  • Elocalhost.localdomain 127.0.0.1 localhost

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    14% (5)
  • C
    3% (1)
  • D
    74% (26)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice