Option 1
DNS
A distributed naming system that answers queries for records such as host addresses.
Side-by-side guides
DNS resolves names to records; DHCP leases network settings to devices. They often work together, but solve different problems.
Option 1
A distributed naming system that answers queries for records such as host addresses.
Option 2
A protocol that leases IP configuration, commonly including an address, gateway, and DNS resolver.
| What to compare | DNS | DHCP |
|---|---|---|
| Main question | What records or address belong to this domain name? | What network settings should this device use? |
| What it provides | Answers such as A or AAAA records, aliases, and mail-routing records. | A time-limited address lease and options such as a subnet mask, default gateway, and DNS server. |
| When it is used | When an application needs to look up a name before connecting to a service. | When a device joins a network and needs its IP configuration. |
| Typical clue when troubleshooting | The device has network access, but a particular name does not resolve as expected. | The device has no valid lease or receives incorrect network settings. |
Finding records for a domain name and directing applications to network services.
Automatically assigning reusable IP settings to devices on a network.