nerdexam
CompTIA

LX0-104 · 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. The /etc/resolv.conf file configures the DNS resolver for a system, primarily using nameserver to specify DNS server IPs and search to define domain suffixes for hostname lookups. These keywords direct how the system queries DNS for hostnames.

Networking Fundamentals

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

(60 responses)
  • A
    2% (1)
  • B
    90% (54)
  • D
    3% (2)
  • E
    5% (3)

Why each option

The `/etc/resolv.conf` file configures the DNS resolver for a system, primarily using `nameserver` to specify DNS server IPs and `search` to define domain suffixes for hostname lookups. These keywords direct how the system queries DNS for hostnames.

Asubstitute

`substitute` is not a standard keyword used in `/etc/resolv.conf` for DNS resolver configuration.

BnameserverCorrect

The `nameserver` keyword is essential in `/etc/resolv.conf` and specifies the IP address of a Domain Name System (DNS) server that the resolver should query to resolve hostnames.

CsearchCorrect

The `search` keyword specifies a list of domain names to be appended to hostnames that are not fully qualified domain names (FQDNs) before attempting to resolve them, allowing for short name resolution within local domains.

Dlookup

`lookup` is not a standard keyword for `/etc/resolv.conf`; DNS resolution behavior is primarily controlled by `nameserver`, `search`, and `domain`.

Emethod

`method` is not a standard keyword for `/etc/resolv.conf`; resolver configuration does not use a "method" keyword for its operations.

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

Topics

#DNS#resolv.conf#nameserver#search domain

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice