312-50V11 · Question #604
A hacker is attempting to use nslookup to query Domain Name Service (DNS). The hacker uses the nslookup interactive mode for the search. Which command should the hacker type into the command shell…
The correct answer is C. Set type=ns. In nslookup interactive mode, the 'set type=ns' command configures the query type to retrieve DNS NS (nameserver) records.
Question
A hacker is attempting to use nslookup to query Domain Name Service (DNS). The hacker uses the nslookup interactive mode for the search. Which command should the hacker type into the command shell to request the appropriate records?
Options
- ALocate type=ns
- BRequest type=ns
- CSet type=ns
- DTransfer type=ns
How the community answered
(41 responses)- A2% (1)
- B5% (2)
- C88% (36)
- D5% (2)
Why each option
In nslookup interactive mode, the 'set type=ns' command configures the query type to retrieve DNS NS (nameserver) records.
'locate' is not a recognized command in nslookup interactive mode; no such command exists in the nslookup utility syntax.
'request' is not a valid nslookup interactive command; the correct verb for configuring query options in nslookup is 'set'.
The correct nslookup interactive mode syntax for changing the DNS record type is 'set type=<record>', so 'set type=ns' instructs nslookup to query for NS records, which identify the authoritative nameservers for a domain. After issuing this command, any subsequent domain lookup in the session will request NS records. This is essential for DNS reconnaissance to identify authoritative nameservers as targets for further queries or zone transfer attempts.
'transfer' is not a valid nslookup interactive command; DNS zone transfers are initiated separately using 'ls -d' in nslookup or via dedicated tools.
Concept tested: nslookup interactive mode set type command for DNS
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-set-type
Topics
Community Discussion
No community discussion yet for this question.