CPSA ยท Open source information gathering
WHOIS and registration records
What IP and domain registries reveal: ranges, contacts, name servers, and regional registries.
Key points
- WHOIS is a simple text query service on TCP port 43 that returns registration data.
- Domain records show the registrant, registrar, dates and name servers.
- Address-space records (from the regional registries ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC) show the allocated range, its owner and abuse/technical contacts.
- For a tester it maps a target's network ranges and people without touching the target.
Source: https://www.rfc-editor.org/rfc/rfc3912
Practice questions
Which transport and port does the classic WHOIS protocol use?
- UDP port 53
- TCP port 80
- TCP port 43
- TCP port 443
Show answer
Answer: C. TCP port 43
WHOIS runs over TCP port 43 and the server closes the connection when it has sent its answer. UDP 53 is DNS, and 443 is HTTPS (the newer RDAP is HTTP-based, not classic WHOIS).
Which pieces of information can a domain WHOIS record typically reveal?
- Name servers for the domain
- Open TCP ports on the web server
- The operating system of the mail server
- Registrant or technical contact details
- Passwords for the registrar account
Show answer
Answer: A. Name servers for the domain, D. Registrant or technical contact details
Domain records commonly list registrant/admin/tech contacts (unless privacy-protected) and the authoritative name servers. Open ports and installed software are discovered by scanning, not registration data.
True or false: the WHOIS query for an IP address is always answered by one single global database.
Show answer
Answer: False
Address space is delegated to five regional registries, each with its own WHOIS service. A query sent to the wrong one usually returns a referral or only a top-level allocation, so you follow the pointer to the right registry.
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.
