nerdexam
GIAC

GCIH · Question #449

Which Win32 based command will display DNS record names and types, as well as the current time to live for the record?

The correct answer is A. ipconfig /displaydns. The command ipconfig /displaydns dumps the contents of the local DNS resolver cache maintained by Windows. For each cached entry it shows: the record name (hostname), the record type (e.g., A, AAAA, CNAME), the Time To Live (TTL) remaining before the entry expires, and the resolv

Reconnaissance, Scanning, and Enumeration

Question

Which Win32 based command will display DNS record names and types, as well as the current time to live for the record?

Options

  • Aipconfig /displaydns
  • Bipconfig /showdnsid
  • Cipconfig /all
  • Dipconfig /registerdns

How the community answered

(31 responses)
  • A
    94% (29)
  • B
    3% (1)
  • D
    3% (1)

Explanation

The command ipconfig /displaydns dumps the contents of the local DNS resolver cache maintained by Windows. For each cached entry it shows: the record name (hostname), the record type (e.g., A, AAAA, CNAME), the Time To Live (TTL) remaining before the entry expires, and the resolved data (e.g., IP address). This makes it the correct answer. ipconfig /all (Option C) shows detailed adapter configuration - IP addresses, subnet masks, default gateways, DNS server addresses - but does not show cached DNS records or their TTLs. ipconfig /registerdns (Option D) triggers a re-registration of the machine's DNS records with the DNS server; it is a write operation, not a display command. ipconfig /showdnsid (Option B) is not a valid ipconfig switch and does not exist.

Topics

#DNS cache#ipconfig#Windows DNS commands#TTL records

Community Discussion

No community discussion yet for this question.

Full GCIH Practice