NetWarren_

Lessons › Networking fundamentals

DORA and the phonebook: DHCP and DNS

12 min lesson · Networking fundamentals · free

▶ Start the interactive lesson

Ticket #131, from HR: "Three new starters' laptops show 'No internet'." You run ipconfig: 169.254.12.7. Maya: "That address is a cry for help. Something went wrong before the laptop even got an address."

Why DHCP exists

Typing an IP, mask, gateway and DNS server into 500 laptops by hand means typos, duplicate addresses and hours of work. DHCP (Dynamic Host Configuration Protocol) hands all of it out automatically when a device joins the network.

DORA: four messages

Discover: the new device broadcasts "is there a DHCP server?" (it has no IP yet, so it uses 0.0.0.0). Offer: the server offers an address. Request: the device asks for that address. Ack: the server confirms, and the device configures itself.

Pools, leases and reservations

A scope or pool is the range the server hands out (e.g. .100–.200), plus the mask, gateway and DNS to give out. Keep printers and servers out of the pool, or give them a reservation: always the same IP for one MAC address.

When DHCP fails

No answer → the device gives itself a 169.254.x.x address (APIPA). If you see that on a ticket, think "DHCP problem".

DNS: the internet's phonebook

People remember names (intranet.burrow.local); networks need IPs. DNS turns names into IP addresses. An A record maps a name to an IPv4 address.

Key points

The full lesson has more: animations, a hands-on exercise, 4 quiz questions and spaced review cards. Open it free →