BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA PT0-003 Exam - Topic 2 Question 30 Discussion

Posted by Patrick on Nov 23, 2025 at 02:01 AM

[Attacks and Exploits]

A tester gains initial access to a server and needs to enumerate all corporate domain DNS records. Which of the following commands should the tester use?

Suggested Answer: C

La opcin C, dig axfr @local.dns.server, realiza una transferencia de zona DNS (Zone Transfer). Si el servidor DNS est mal configurado y permite este tipo de solicitudes, el atacante puede obtener todos los registros DNS del dominio interno.

La opcin A muestra solo registros A/AAAA. La B no hace enumeracin completa. La D no es vlida como sintaxis.

Referencia: PT0-003 Objective 3.3 -- Perform domain enumeration using dig and DNS zone transfer techniques.


Get Premium PT0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
AL
Alesia 7 months ago
I feel like B is safer for initial access.
YA
Yan 8 months ago
D is useful if you want to specify the DNS server.
DE
Derick 8 months ago
C seems risky, but it could reveal a lot.
JU
Jules 8 months ago
A is good too, quick results for A and AAAA records.
DE
Demetra 8 months ago
I prefer B. It's straightforward for basic queries.
RA
Rana 8 months ago
I think option C is the best. It does a zone transfer.
WH
Whitley 8 months ago
D seems useful too, but I’d stick with C for thoroughness.
CH
Chana 9 months ago
Wait, can you really do a zone transfer with C? Sounds risky!
JA
Jaleesa 9 months ago
I disagree, B is simpler for basic queries.
WI
Wilda 9 months ago
A is a quick way to get specific records, but not exhaustive.
AS
Ashlyn 10 months ago
I think C is the best choice for DNS enumeration.
CH
Cheryl 10 months ago
Haha, the tester should just ask the IT admin nicely for the DNS records. No need for all this hacking stuff!
GE
Germaine 10 months ago
B) nslookup local.domain is too basic, it doesn't provide a comprehensive list of all domain records.
FL
Florencia 10 months ago
A) dig +short A AAAA local.domain is not enough, it only retrieves the A and AAAA records.
LA
Laquita 10 months ago
D) nslookup -server local.dns.server local.domain is also a good option to enumerate the DNS records.
TA
Taryn 10 months ago
C) dig axfr @local.dns.server is the correct answer. This command performs a DNS zone transfer to retrieve all domain records.
KI
King 11 months ago
I’m torn between B and D; I think using `nslookup` with a specific server could help, but I can't remember the exact syntax for option D.
MA
Marquetta 11 months ago
I vaguely recall that `dig axfr` is used for zone transfers, so option C might be the best one if the server allows it.
TE
Terina 11 months ago
I practiced with `nslookup` before, and it seems like option B could work, but I feel like there might be a better choice for enumerating all records.
AJ
Aja 11 months ago
I think I remember that `dig` is often used for DNS queries, but I'm not sure if it's the right one for this specific task.
CA
Carissa 11 months ago
Hmm, I'm a bit confused. A lot of these options look similar, and I'm not sure which one is the best approach. Maybe I'll try a few and see which one gives me the most useful information.
KI
Kimbery 12 months ago
This is a tricky one, but I think I know the answer. Option C, the dig axfr command, is the way to go. It's the classic technique for doing a full zone transfer and enumerating all the DNS records. Gotta love those AXFR queries!
AN
Anastacia 12 months ago
Okay, I've got this. Option D is the answer - the nslookup command with the -server flag will let us query the local DNS server directly and pull all the domain info we need. Simple and effective.
JO
Johanna 1 year ago
I'm not too sure about this one. The question is asking about enumerating DNS records, but some of these options seem a bit specific. I might try a few of them and see which one gives me the most comprehensive results.
JE
Jenifer 1 year ago
Hmm, this looks like a classic DNS enumeration question. I think option C is the way to go - the dig axfr command should let us do a full zone transfer and get all the domain records.
UL
Ula 7 months ago
↳ replying to Jenifer
Option A could also work for quick checks, but not as thorough.
GE
Gerri 7 months ago
↳ replying to Jenifer
I’d still consider option B for a safer approach.
HE
Herschel 7 months ago
↳ replying to Jenifer
True, but if done stealthily, it can be very effective.
NO
Nobuko 7 months ago
↳ replying to Jenifer
Yeah, but isn't it risky? It could alert the admins.
PA
Paris 11 months ago
↳ replying to Jenifer
I agree, option C seems like the best choice for a full zone transfer.
0/2000 characters

Save Cancel