nerdexam
Linux_Foundation

LFCS · Question #54

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

The correct answer is B. nameserver C. search. This question identifies valid keywords used in the /etc/resolv.conf file to configure DNS client behavior for name resolution.

Submitted by katya_ua· Apr 18, 2026Networking

Question

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

Options

  • Asubstitute
  • Bnameserver
  • Csearch
  • Dlookup
  • Emethod

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    88% (36)
  • D
    7% (3)
  • E
    2% (1)

Why each option

This question identifies valid keywords used in the `/etc/resolv.conf` file to configure DNS client behavior for name resolution.

Asubstitute

`substitute` is not a valid keyword for configuring DNS resolution in the `/etc/resolv.conf` file.

BnameserverCorrect

The `nameserver` keyword is used to specify the IP address of a DNS server that the system should query for name resolution.

CsearchCorrect

The `search` keyword specifies a list of domain suffixes that the resolver should append to unqualified hostnames when attempting to resolve them.

Dlookup

`lookup` is not a valid keyword in `/etc/resolv.conf`; the order of name service lookups is configured in `/etc/nsswitch.conf`.

Emethod

`method` is not a valid keyword for configuring DNS resolution in the `/etc/resolv.conf` file.

Concept tested: /etc/resolv.conf keywords for DNS

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

Topics

#DNS client configuration#resolv.conf#Networking keywords

Community Discussion

No community discussion yet for this question.

Full LFCS Practice