Give the absolute path of the file that traditionally lists the DNS servers the local resolver library should query.
LPIC-1 Exam 102-500, objective 109. Networking fundamentals easy
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
Answer
Type the answer.
Accepted answer
/etc/resolv.conf
Case sensitive — Linux is, and grading LS as ls would teach a falsehood.
Why
/etc/resolv.conf holds up to three `nameserver` lines plus optional `search`, `domain` and `options` directives. Note the spelling: resolv, without the trailing e. On many current distributions the file is a symlink managed by systemd-resolved or by NetworkManager and is rewritten automatically, in which case hand edits are lost and the real configuration lives in /etc/systemd/resolved.conf or in the connection profile.
Where this comes from
- Cited
- manual page resolv.conf(5)
Practise this
Reading one question is not practice. The trainer will draw a set from objective 109 and space the ones you get wrong.