exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 5 question 8 discussion

Actual exam question from CompTIA's LX0-104
Question #: 8
Topic #: 5
[All LX0-104 Questions]

SIMULATION -
Given the following line from /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
By default, which file will be queried first for hostname lookups? (Specify the full name of the file, including path.)

Show Suggested Answer Hide Answer
Suggested Answer: /etc/hosts

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
linux_admin
2 years, 2 months ago
The file that will be queried first for hostname lookups is /etc/hosts.
upvoted 1 times
linux_admin
2 years, 2 months ago
The /etc/hosts file is used as a local database for associating host names with IP addresses. This file is read before DNS queries are made to a remote DNS server. The entries in this file are used to resolve hostnames to IP addresses for systems on a local network. This is particularly useful for testing and debugging, or for systems that do not have access to a DNS server. The file is also used as a fallback mechanism in case the remote DNS server is unavailable. The file has the following format: IP_address hostname [aliases...] 127.0.0.1 localhost 192.168.0.2 example.com example
upvoted 1 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