DNS, IP addressing and a handful of common protocols underpin almost everything you test. DNS in particular is both the internet's address book and one of the richest sources of reconnaissance you'll ever have.
IP addressing in one page
Every device on a network has an IP address. IPv4 addresses look like 192.168.1.10 (four numbers, 0–255). Addresses are grouped into subnets using a mask like /24, which says "the first 24 bits identify the network, the rest identify the host" — so 192.168.1.0/24 covers 192.168.1.1 through 192.168.1.254. IPv6 addresses are much longer (2001:db8::1) and increasingly common; as a tester, remember that IPv6 is often less monitored and less firewalled than IPv4, so it can be an overlooked path.
Some ranges are private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and only routable inside an organisation. Knowing whether an address is public or private tells you immediately whether it's reachable from the internet — a scoping essential.
How hosts find each other
- ARP maps an IP address to a hardware (MAC) address on the local network.
- DHCP hands out IP addresses automatically when a device joins.
- Routing decides how a packet gets from one network to another.
You rarely test these directly early on, but understanding them explains why something is or isn't reachable.
DNS: the internet's address book
Computers talk in IP addresses; humans use names. DNS (Domain Name System) translates shop.example.com into an IP address. A lookup walks a hierarchy: your resolver asks the root servers, which point to the .com servers, which point to example.com's authoritative servers, which return the answer. The result is cached for a time (its TTL).
Key record types you'll see:
- A / AAAA — name → IPv4 / IPv6 address
- CNAME — an alias pointing to another name
- MX — mail servers for the domain
- TXT — arbitrary text (often SPF/DKIM, domain verification)
- NS — the authoritative name servers
Why DNS is a goldmine for reconnaissance
For an authorised assessment, DNS reveals an organisation's footprint without touching their systems aggressively:
- Subdomains (
vpn.,mail.,dev.,staging.) map out services and sometimes forgotten or less-protected systems. - MX and TXT records reveal mail providers and third-party services in use.
- Certificate Transparency logs — public logs of every TLS certificate issued — list hostnames an organisation has requested certificates for, often exposing internal-sounding names. This is passive, public, and extremely informative.
The common protocols at a glance
| Protocol | Port | Purpose |
|---|---|---|
| HTTP / HTTPS | 80 / 443 | Web traffic |
| SSH | 22 | Secure remote shell |
| SMB | 445 | Windows file sharing |
| DNS | 53 | Name resolution |
| SMTP | 25 / 587 | Sending email |
| RDP | 3389 | Windows remote desktop |
You'll meet each of these again in depth. For now, recognising a port is enough to form a hypothesis about what a host does.
Key takeaways
- Subnets and masks tell you what's on a network; public vs private ranges tell you what's reachable.
- IPv6 is often less monitored — don't ignore it.
- DNS maps names to addresses through a cached hierarchy of record types.
- DNS data, subdomains and Certificate Transparency logs are powerful, low-risk reconnaissance sources.
- Recognising common ports lets you form quick, testable hypotheses about a host's role.
Reporting mindset: for every observation, record what you did, what you saw, the business impact, and a clear, verifiable remediation. Evidence and clear writing are what turn testing into value.
This is a free preview. Sign in to track progress and unlock the full course.
Sign in