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
Which DNS record type lists the mail servers for a domain?
- MX
- NS
- TXT
- 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.
Which statements about DNS zone transfers are correct?
- It is a single-record query sent only over UDP
- It copies the whole zone from a name server
- It should be limited to authorised secondary servers
- It is safe to allow from any address
- 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.
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.
