CPSA ยท Open source information gathering
DNS record types and what they leak
SOA, MX, TXT, A, NS, PTR, HINFO and CNAME: what each holds and what it leaks.
Key points
- A: maps a name to an IPv4 address
- CNAME: aliases one name to another
- NS: names the authoritative servers
- MX: mail hosts with a preference (lower is tried first)
- PTR: maps an address back to a name
- SOA: zone details (primary server, admin mailbox, serial, timers)
- TXT: free text such as mail-policy or verification strings
- HINFO: CPU and OS
- Together: reveal hosts, mail providers, naming schemes, sometimes platforms
Source: https://www.rfc-editor.org/rfc/rfc1035
Practice questions
Which record type holds the host's CPU type and operating system as two text strings?
- TXT
- SOA
- PTR
- HINFO
Show answer
Answer: D. HINFO
HINFO carries a CPU string and an OS string. It is rarely published today because it hands an attacker platform details; TXT is free text, and SOA and PTR have entirely different roles.
Which kinds of information are often found in a domain's TXT records?
- Sender policy listing the servers allowed to send mail
- Domain-verification tokens for third-party services
- Free-text administrative notes
- MAC addresses of internal hosts
- TLS private keys
Show answer
Answer: A. Sender policy listing the servers allowed to send mail, B. Domain-verification tokens for third-party services, C. Free-text administrative notes
TXT is free-form, so admins publish mail sender policies (SPF), cloud-service ownership tokens and notes. These reveal the mail and SaaS providers in use. TXT does not carry MAC addresses or private keys.
True or false: a CNAME record maps a name directly to an IPv4 address.
Show answer
Answer: False
A CNAME makes one name an alias of another name, which is then resolved further. The record that maps a name to an IPv4 address is A.
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.
