nerdexam
Linux_Foundation

LFCS · Question #277

LFCS Question #277: Real Exam Question with Answer & Explanation

The correct answer is A. There is a syntax error.. The provided /etc/resolv.conf entry contains a syntax error because IP addresses are incorrectly listed on a search directive line.

Submitted by satoshi_tk· Apr 18, 2026Networking

Question

Which of the following statements is true regarding the below /etc/resolv.conf file? search example.com 127.0.0.1 208.77.188.166

Options

  • AThere is a syntax error.
  • BIf DNS queries to the localhost fail, the server 208.77.188.166 will be queried.
  • Cexample.com will be appended to all host lookups.
  • DThe DNS servers at 127.0.0.1 and 208.77.188.166 will be queried in a round robin fashion.
  • EThe DNS server with the shortest ping time will be queried first. If the lookup fails, the second server

Explanation

The provided /etc/resolv.conf entry contains a syntax error because IP addresses are incorrectly listed on a search directive line.

Common mistakes.

  • B. This statement assumes valid configuration; due to the syntax error, the DNS servers cannot be correctly parsed and queried in the manner described.
  • C. While example.com would typically be appended to host lookups if correctly configured, the syntax error on the line prevents the entire line from being correctly interpreted.
  • D. DNS servers listed with the nameserver directive are queried in the order they appear, not in a round-robin fashion unless specifically configured by resolver libraries or local DNS caching daemons, and this line is syntactically incorrect for listing nameservers.
  • E. The DNS resolver library queries nameservers in order, not based on ping time, and this statement assumes valid configuration which is not the case.

Concept tested. /etc/resolv.conf syntax

Reference. https://man7.org/linux/man-pages/man5/resolv.conf.5.html

Topics

#resolv.conf#DNS configuration#Networking files#Syntax errors

Community Discussion

No community discussion yet for this question.

Full LFCS Practice