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.
Question
Options
- Asubstitute
- Bnameserver
- Csearch
- Dlookup
- Emethod
How the community answered
(41 responses)- A2% (1)
- B88% (36)
- D7% (3)
- E2% (1)
Why each option
This question identifies valid keywords used in the `/etc/resolv.conf` file to configure DNS client behavior for name resolution.
`substitute` is not a valid keyword for configuring DNS resolution in the `/etc/resolv.conf` file.
The `nameserver` keyword is used to specify the IP address of a DNS server that the system should query for name resolution.
The `search` keyword specifies a list of domain suffixes that the resolver should append to unqualified hostnames when attempting to resolve them.
`lookup` is not a valid keyword in `/etc/resolv.conf`; the order of name service lookups is configured in `/etc/nsswitch.conf`.
`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
Community Discussion
No community discussion yet for this question.