IP fundamentals
DHCP vs DNS: which service does what?
DHCP supplies network configuration; DNS translates names into records. They cooperate, but failure in either produces different symptoms.
Updated
Joining a network
A typical IPv4 client obtains an address, mask, gateway and DNS resolver through DHCP. A lease has a lifetime. A manually configured device may bypass DHCP entirely.
Resolving a name
When an application opens www.example.com, it asks the configured resolver for an address record. DHCP does not resolve the name, and changing a DNS resolver does not normally change the public-facing IP.
Diagnose in order
If the device has no valid local address or gateway, correct the network configuration first. If an existing authorized service works by address but fails by name, inspect the resolver and DNS response. An HTTP request to a bare IP may fail for TLS or virtual-host reasons, so this comparison is not conclusive.
Worked diagnosis
Suppose a laptop receives 192.168.1.34/24, a gateway and a DNS server. A successful DHCP lease establishes that configuration was supplied, not that it is correct for internet access. If another laptop on the same network resolves the same public name, compare the two resolver settings before renewing leases.
Step-by-step example
Imagine a laptop joining a home network. Use this sequence to separate configuration from name resolution.
- 01
Find the lease
Open your device's network settings and inspect the assigned IPv4 address, prefix, gateway and DNS resolver. A successful DHCP lease provides configuration; it does not guarantee that the internet works.
- DHCP server
- Lease
- Laptop
- 192.168.1.34/24
- Gateway
- 192.168.1.1
Illustration · example, not a live result - 02
Follow a name query
After the device has a usable connection, open DNS lookup and query example.com with type A. The resolver returns an address record; DHCP is not involved in translating that name.
- Browser
- example.com
- DNS resolver
- A query
- Answer
- IPv4 record
Illustration · example, not a live result - 03
Isolate the failing layer
If the device has no valid local configuration, correct that first. If configuration looks normal but name resolution fails, inspect DNS responses and compare another device. A browser request to a bare IP can fail for unrelated TLS reasons.
- No lease
- Local configuration
- DNS failure
- Resolver / name
- HTTPS failure
- Connection / service
Illustration · example, not a live result
Check your understanding
DHCP supplies addresses and settings; DNS supplies records. Neither guarantees a successful HTTPS request.
Try this tool →Try this
Compare the DNS resolver configured by your router with a DNS lookup result, without modifying working settings.
DNS record lookup →