XK0-006 Troubleshooting Practice Question
A technician suspects that a DNS resolution issue is causing connectivity problems. Which command can be used to query the DNS server for an A record for 'example.com'?
⚠ Common exam trap
CompTIA often tests the distinction between commands that perform name resolution (like `ping` or `traceroute`) versus those that directly query DNS servers for specific record types, leading candidates to choose `ping` or `traceroute` when a DNS-specific query is needed.
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
✓
dig example.com A
The `dig` command is a flexible DNS lookup utility that can query specific record types. Using `dig example.com A` directly queries the DNS server for the IPv4 address (A record) of 'example.com', making it the correct choice for diagnosing DNS resolution issues.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
traceroute example.com
Why it's wrong here
traceroute may use DNS but not for record query.
- ✓
dig example.com A
Why this is correct
dig queries DNS for A record.
- ✗
ping example.com
Why it's wrong here
ping uses DNS but doesn't query specific record.
- ✗
nslookup example.com A
Why it's wrong here
nslookup syntax is 'nslookup example.com' or 'set type=A'.
Visual reference
Go deeper
Related to this question
Learn chapter
File Transfer and Remote Access
Key term
Utility
Utility, in IT service management, is the measure of a service's functionality that ensures it is fit for purpose by meeting the specific needs of the customer.
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.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.