DNS DHCP and routing
Three different network jobs
DHCP can supply network configuration automatically, including an IPv4 address lease, prefix-related mask, default router and DNS server information. DNS resolves names and other records; for example an A record maps a name to an IPv4 address. Routing selects how an IP packet should be forwarded toward its destination. These jobs interact but do not replace each other. A statically configured client need not use DHCP.
Local link or gateway?
A router forwards IP packets between networks. An ordinary host consults its routing table and uses the most specific matching route, or a default route when appropriate. On an Ethernet link it needs a local next-hop link-layer address; ARP in IPv4 and Neighbor Discovery in IPv6 help obtain that information. A switch forwards local frames based on link-layer information. The OSI and TCP/IP models are useful ways to organize these jobs, not rigid diagrams of every implementation.
Trace a paper-only request
A fictional client has 192.0.2.10/24 and default router 192.0.2.1. A synthetic DNS answer for catalog.example.com is 198.51.100.20. With only a connected /24 route and a default route, the client selects its router for that destination. The local frame is addressed to the next hop; the IP destination remains 198.51.100.20 in this example without NAT. A reply also needs a usable return path. No DNS query or network request is made in this exercise.
Diagnose without guessing
If the client has no usable network configuration, inspect the fictional configuration first. If a name lookup fails, that is evidence about resolution, not proof that the server is down. If DNS answers correctly but the connection fails, routes, policy, the transport connection and service health are separate hypotheses. NAT may rewrite addresses or ports; it is not a substitute for a firewall. A successful lookup also does not authenticate a user.
Practice a local destination
In the same simplified table, a packet to 192.0.2.50 matches the connected /24 route, so it does not need the default router for that hop. Compare this with the remote destination. Next, distinguish a possible route from permission to access a resource.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
DNS DHCP and routing — Knowledge check
Interpret fictional networking evidence and security boundaries.
Which service can provide an IPv4 lease and default router information?
What does a DNS A record describe?
A client at 192.0.2.10/24 has only a connected route and a default route via 192.0.2.1. What is the next hop to 198.51.100.20?
A DNS answer is correct but the connection fails. What should you consider?
Which mechanism helps obtain an IPv4 next-hop link-layer address on Ethernet?