All comparisons

Side-by-side guides

DNS vs DHCP: names vs network configuration

DNS resolves names to records; DHCP leases network settings to devices. They often work together, but solve different problems.

A distributed naming system that answers queries for records such as host addresses.

Option 2

DHCP

Explore this topic

A protocol that leases IP configuration, commonly including an address, gateway, and DNS resolver.

What to compareDNSDHCP
Main questionWhat records or address belong to this domain name?What network settings should this device use?
What it providesAnswers 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 usedWhen 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 troubleshootingThe device has network access, but a particular name does not resolve as expected.The device has no valid lease or receives incorrect network settings.

Choose based on your situation

  • DNS

    Finding records for a domain name and directing applications to network services.

  • DHCP

    Automatically assigning reusable IP settings to devices on a network.