nerdexam
LPI

102-500 · Question #101

Which of the following keywords can be used in the file /etc/resolv/conf? (Choose two.)

The correct answer is C. search D. nameserver. search and nameserver are the two valid directives in /etc/resolv.conf. nameserver specifies the IP address of a DNS server to query (up to 3 entries allowed), while search defines a list of domain suffixes to append when resolving short hostnames (e.g., search example.com lets…

Networking Fundamentals

Question

Which of the following keywords can be used in the file /etc/resolv/conf? (Choose two.)

Options

  • Asubstitute
  • Blookup
  • Csearch
  • Dnameserver
  • Emethod

How the community answered

(23 responses)
  • A
    9% (2)
  • B
    13% (3)
  • C
    74% (17)
  • E
    4% (1)

Explanation

search and nameserver are the two valid directives in /etc/resolv.conf. nameserver specifies the IP address of a DNS server to query (up to 3 entries allowed), while search defines a list of domain suffixes to append when resolving short hostnames (e.g., search example.com lets you reach host as host.example.com).

The distractors are all invalid: substitute, lookup, and method are not recognized directives in /etc/resolv.conf - lookup and method appear in some BSD variants or older systems but are not standard Linux /etc/resolv.conf keywords.

Memory tip: Think "NS" - the two answers start with letters from Nameserver and Search, the two most fundamental DNS configuration concepts: where to ask (nameserver) and what suffix to try (search).

Topics

#DNS#nameserver#resolv.conf#network-config

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice