Courseiva
TroubleshootingmediumMultiple SelectObjective-mapped

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

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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 →

How Courseiva writes practice questions · Editorial policy

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.