exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 206 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 206
Topic #: 1
[All LFCS Questions]

Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

  • A. resolv
  • B. dns
  • C. remote
  • D. files
  • E. hosts
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
9866666
5 months, 1 week ago
Selected Answer: BD
The correct answers are: B. dns D. files Explanation: The /etc/nsswitch.conf file controls the order in which different sources are consulted for various types of information, including hostnames. Here's how the keywords you mentioned are used: dns: Specifies that the Domain Name System (DNS) should be used for hostname resolution. files: Specifies that the /etc/hosts file (or its equivalent) should be checked for hostname mappings. The other options are not valid sources for host name lookups in /etc/nsswitch.conf: resolv: While related to DNS resolution, it's not a keyword used directly in nsswitch.conf. remote: This is not a standard keyword in nsswitch.conf. hosts: While the /etc/hosts file is used for hostname lookups, the keyword is files in nsswitch.conf.
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 ...