XK0-006 Troubleshooting Practice Question
A Linux administrator is troubleshooting a DNS resolution issue. The system uses /etc/resolv.conf. Which two of the following directives are commonly found in this file? (Choose two.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
nameserver 8.8.8.8
/etc/resolv.conf typically contains nameserver entries and optionally search and domain directives.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
domain localdomain
Why it's wrong here
domain is a directive but less commonly used; search is more typical.
- ✗
options timeout:2
Why it's wrong here
While options can appear, it is less common than nameserver and search.
- ✗
hosts: files dns
Why it's wrong here
This line belongs in /etc/nsswitch.conf, not resolv.conf.
- ✓
nameserver 8.8.8.8
Why this is correct
nameserver specifies a DNS server.
- ✓
search example.com
Why this is correct
search defines the domain search list.
Visual reference
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
DNS
DNS is the system that translates human-friendly domain names like example.com into machine-readable IP addresses so computers can find each other on a network.
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.