Which resolver and which DHCP server you trust
Hosts believe the answers they are given for names and for their own address. Those answers should come from servers you designated, on ports you designated.
Diagram
From an answer on the local network to a path
Step 1 of 4
Ask
A host asks for an address or a name.
# Clients use the resolvers you operate. # They do not take a resolver from an unknown answer.
The host takes the first offer.
The host asks a resolver it learned from that offer.
Later encryption may hide the payload and still follow the wrong path.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
4 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
DHCP decides the host’s map
- What fails
- The offer contains the address, the gateway, and often the DNS servers. A wrong offer is a wrong map for everything after it.
- Who is affected
- People whose machines join that segment, including guests if they share it.
- What you would notice
- More than one DHCP server in a packet capture on a network that should have one, or a gateway you do not recognize.
- What you change
- Authorize the server. Drop offers from other ports. Separate guest segments.
The resolver is a trust anchor
- What fails
- If a client asks an unexpected resolver, the names it receives are that resolver’s story. Your DNSSEC or your filtering does not apply.
- Who is affected
- Anyone whose client was pointed at it, for every name they look up.
- What you would notice
- Clients configured with a public resolver you did not choose, or a resolver learned from DHCP that is not yours.
- What you change
- Push your resolvers through the management you have. Refuse DNS to the internet from clients if the design says they use you.
Encryption does not pick the path
- What fails
- TLS checks the name if the client still uses the right name and validates certificates. It does not stop a wrong gateway from seeing who you talk to, and it does nothing if the client was told a different name.
- Who is affected
- The people on the affected clients.
- What you would notice
- A belief that “we use HTTPS” closes local name and address spoofing.
- What you change
- Keep TLS. Also control DHCP and DNS. They are different layers.
What a capture on your own network shows
- What fails
- On a network you administer, a short capture during a join should show one offer and your resolver. A second offer is the incident.
- Who is affected
- The on-call network owner.
- What you would notice
- No baseline, so the second offer looks like noise.
- What you change
- Write the baseline. Alert on a new DHCP server or a new resolver if the platform can. Do not run a spoof to “see if it works.”
The offer is the host’s configuration
When a machine joins a segment, it asks who it is. DHCP answers with an address, a gateway, and usually resolvers. If any machine on the segment may answer, the first or the loudest answer wins. Everything the host does next uses that map. This is why rogue DHCP shows up in real incidents and why “we would notice” is not a control.
Switches can be told which ports may speak DHCP. That is the control. A laptop port is not a DHCP server port. Guest Wi-Fi is not the server port either. Write the ports down. The wireless isolation page is what you pair this with when the segment is a radio.
Names come from a resolver you run
DNS answers are the map for everything above the address. Point clients at resolvers you operate, where you can apply filtering, logging you are allowed to keep, and DNSSEC validation if you have chosen to. A client that learned a resolver from a bad offer is not using any of that. A client hardcoded to a resolver you do not operate is a policy exception with an owner.
Do not treat this page as permission to answer someone else’s DHCP or DNS. On a network you administer, baseline the legitimate server and investigate a second voice. On a network you do not administer, you do not have a lab. Encryption of the sessions you care about still matters, because a correct map is not confidentiality.
Keep the name check
TLS that validates certificates makes a wrong address less useful for reading the payload, as long as the client asked for the right name and refused a certificate that does not match. It does not hide the fact of the connection from a wrong gateway, and it does not help if the client was given a different name that someone else holds a certificate for. You want the path control and the certificate control. Teams that pick one are the ones who write the incident report.
You would notice two DHCP servers in a capture you were allowed to take, clients using resolvers outside your list, and a design document that says HTTPS is the network security model. The people affected are the users of those clients. The change is authorization of the speakers plus validation of names.
What you change
Turn on DHCP authorization or the equivalent your switches actually have. Push resolver settings through the host management you have. Block outbound DNS to resolvers you did not choose if that matches the design, and then watch for broken applications that hardcoded one. Keep certificate validation on. Do not disable it to make an intercept box convenient unless that box is a documented, authorized inspection point with its own governance.
Tabletop a second offer: who is paged, which capture is allowed, how you find the port. The exercise is the response. It is not a demonstration on a café network.
Check yourself
Recognition and the fix. Nothing here is a procedure.
Laptops on the office segment accept an address and a DNS server from any offer. What failed?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.