DNS vs DHCP
Both services run quietly on every home network and both break the internet when they fail — but they solve completely different problems.
Short answer
DHCP assigns your device an IP address, gateway and DNS server. DNS then translates hostnames like example.com into IP addresses.
DNS vs DHCP at a glance
| Attribute | DNS | DHCP |
|---|---|---|
| Purpose | Name → IP resolution | Address assignment |
| Ports | 53 (UDP/TCP), 853 DoT, 443 DoH | 67/68 UDP |
| Runs when | Every new connection | At join and lease renewal |
| Configurable per device | Yes | Yes, via static IP |
| Failure symptom | "Site can't be reached", IPs still work | No IP address, no connectivity at all |
| Caching | Heavy, TTL-based | Lease-based |
Pros and cons
DNS
- Choice of resolver improves speed and filtering
- Encryptable with DoH/DoT
- Cache poisoning risk
- Slow resolvers delay every page
DHCP
- Zero-configuration networking
- Central control of options
- Single point of failure
- Rogue servers can hijack a LAN
Which should you choose?
| If this is you | Pick |
|---|---|
| Pages fail but direct IPs work | Check DNS |
| Device shows 169.254.x.x | Check DHCP |
| Blocking ads network-wide | DNS filtering |
| Reserving printer addresses | DHCP reservation |
SwiftNetScan