Day 2: Networking and DNS, the part everyone skips
IP addresses, ports and DNS in plain words, then look up a real domain yourself.
Ask any SOC lead what juniors lack and the answer is often networking. An alert says "connection from 185.x.x.x to port 3389" and you need to know at once whether that is normal. Today covers the minimum.
The lesson
- IP address. The address of a device on a network. Private ranges (such as
10.x.x.xand192.168.x.x) stay inside an organisation; public addresses are reachable from the internet. - Subnet. A block of addresses, written like
192.168.1.0/24. The/24says how many addresses are in the block (256 here). Firewall rules and cloud networks are written in subnets. - Ports. A number that says which service a connection is for. Worth knowing by heart: 22 (SSH), 25 (SMTP mail), 53 (DNS), 80 and 443 (web), 3389 (Remote Desktop). Remote Desktop or SSH open to the whole internet is a classic finding.
- DNS. Turns names into addresses, and holds records that matter for security: A (address), MX (mail), TXT (including SPF and DMARC) and CNAME (alias). Attackers abuse DNS too, for example with lookalike domains.
- TCP vs UDP. TCP sets up a connection and confirms delivery (web, email); UDP just sends (DNS queries, streaming). You will see both in logs.
Today's task (15 to 20 minutes)
- Open the free DNS lookup tool and look up a domain you know (your college's, your employer's or a big brand's). Record its A, MX and TXT records in your log.
- Open the subnet calculator and enter
192.168.10.0/24, then/26. Write down how many usable addresses each has. - On your own computer, open a command prompt or terminal and run
nslookupfollowed by the same domain. Check that it matches step 1. - In your log: which of the ports above would worry you if it was open to the internet on a company server, and why?
Read next on EpiFive
- CCNA 200-301 study guide, if you want to go deep on networking.
- CompTIA Network+ study guide.
- Sysadmin interview questions on AD, DNS and DHCP.
Tomorrow
Day 3: identity, passwords and MFA, where most real attacks begin, and you will lock down your own accounts. Read day 3 on the site.