DNS and DHCP are two essential network services, but they do not perform the same role. DNS translates names into IP addresses, while DHCP automatically provides network configuration to equipment….
In brief….DNS and DHCP are not competing: they are complementary. In a network of company, DHCP usually tells customers which DNS servers to use….
Solution A….
DNS
The DNS is the network directory. It links a name like server.example.local or boxatoolsinformatique.fr to an IP address…
Key points…
- Solves domain names and internal names….
- Mainly uses port 53 in UDP or TIP….
- Can host records A, AAAA, CNAME, MX and TXT…
Solution B….
DHCP
DHCP automatically distributes an IP address, mask, gateway and DNS servers to client stations….
Key points…
- Avoid setting up each post manually….
- Assigns parameters for a term called lease….
- Mainly uses UDP ports 67 and 68….
Comparative table….
| Criterion…. | DNS | DHCP |
|---|---|---|
| Function… | Name Resolution…. | Attribution of IP configuration…. |
| Main data…. | Name | IP address, mask, gateway, DNS…. |
| Is this a necessary waiter??…. | Yes to easily access resources by name… | Not if all equipment is manually configured…. |
| Typical pane…. | Names no longer work, but IPs answer…. | The post receives an address 169.254.x.x or no configuration…. |
Choose DNS if…
You must make services accessible by name or publish the records of a domain….
Choose DHCP if….
You must configure automatically the workstations, phones, printers or other network customers…
Key takeaways
DNS and DHCP are not competing: they are complementary. In a network of company, DHCP usually tells customers which DNS servers to use….
Deepening the two notions….
← Back to all comparison…