Bitzu

312-50 ยท Footprinting and reconnaissance

Whois and DNS footprinting

Whois fields and registries, DNS record types (A, AAAA, MX, NS, TXT, SOA, SRV, CNAME), zone transfers, reverse DNS, DNS interrogation with nslookup and dig.

Key points

  • WHOIS: registrant, registrar, name servers, creation and expiry dates, contacts; many fields redacted.
  • DNS: A, AAAA (IPv4, IPv6), MX (mail servers), NS (name servers), CNAME (aliases), PTR (reverse mappings).
  • SOA (primary server, serial), TXT (free text, e.g. SPF), SRV (service locations).
  • Zone transfer (AXFR, over TCP): copies a whole zone; allow only to secondary servers.
  • dig, nslookup: usual query tools.

Source: https://linux.die.net/man/1/dig

Practice questions

Single choice

Which DNS record type lists the mail servers for a domain?

  1. MX
  2. NS
  3. TXT
  4. A
Show answer

Answer: A. MX

MX records name the hosts that accept mail for the domain. A holds an IPv4 address, NS names the authoritative name servers, and TXT carries free-form text such as SPF policy.

Select all that apply

Which statements about DNS zone transfers are correct?

  1. It is a single-record query sent only over UDP
  2. It copies the whole zone from a name server
  3. It should be limited to authorised secondary servers
  4. It is safe to allow from any address
  5. It is the same operation as a reverse lookup
Show answer

Answer: B. It copies the whole zone from a name server, C. It should be limited to authorised secondary servers

AXFR is a full-zone copy sent over TCP and is meant for secondary servers, so it should be restricted to them. It is not a UDP lookup of one record, and allowing everyone makes enumeration easy.

True or false

A PTR record maps a hostname to its IPv4 address.

Show answer

Answer: False

A PTR record does the opposite: it maps an IP address back to a hostname for reverse DNS lookups. The hostname-to-IPv4 mapping is an A record.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module