nerdexam
EC-Council

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.

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

(41 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    88% (36)
  • D
    5% (2)

Why each option

In nslookup interactive mode, the 'set type=ns' command configures the query type to retrieve DNS NS (nameserver) records.

ALocate type=ns

'locate' is not a recognized command in nslookup interactive mode; no such command exists in the nslookup utility syntax.

BRequest type=ns

'request' is not a valid nslookup interactive command; the correct verb for configuring query options in nslookup is 'set'.

CSet type=nsCorrect

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.

DTransfer type=ns

'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

#nslookup#DNS#NS records#interactive mode

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice