nerdexam
EC-Council

312-50V9 · Question #497

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=' command is used to specify which DNS record type to query before issuing a lookup.

Footprinting and Reconnaissance

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

(21 responses)
  • B
    5% (1)
  • C
    90% (19)
  • D
    5% (1)

Why each option

In nslookup interactive mode, the 'set type=' command is used to specify which DNS record type to query before issuing a lookup.

ALocate type=ns

'locate' is not a valid nslookup interactive mode command and does not exist in the nslookup command set.

BRequest type=ns

'request' is not a recognized nslookup interactive mode keyword and will produce an error if entered.

CSet type=nsCorrect

The 'set type=ns' command is the correct nslookup interactive mode syntax for changing the query record type to NS (Name Server). Within the interactive shell, all configuration changes use the 'set' keyword followed by the parameter, so 'set type=ns' tells nslookup to request NS records in subsequent queries.

DTransfer type=ns

'transfer' is not a valid nslookup subcommand - zone transfers are initiated differently using 'ls' with the '-d' flag, not a 'transfer type=' syntax.

Concept tested: nslookup interactive mode DNS record type selection

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-set-type

Topics

#nslookup#DNS enumeration#NS records#DNS query

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice