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.
Question
Options
- Asubstitute
- Bnameserver
- Csearch
- Dlookup
- Emethod
How the community answered
(60 responses)- A2% (1)
- B90% (54)
- D3% (2)
- E5% (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.
`substitute` is not a standard keyword used in `/etc/resolv.conf` for DNS resolver configuration.
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.
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.
`lookup` is not a standard keyword for `/etc/resolv.conf`; DNS resolution behavior is primarily controlled by `nameserver`, `search`, and `domain`.
`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
Community Discussion
No community discussion yet for this question.