Key Differences Between DNS and DHCP

DNS is used for resolving and recursively resolving the address to name or name to address of the host. On the other hand, DHCP is used for allocating the addresses to the host in the network dynamically or statically.

Know more @ how dhcp works?

DNS uses port number 53 whereas DHCP could either use 67 or 68.
DHCP supports only UDP while DNS can support TCP and UDP both protocols.

Servers in DNS and DHCP performs different operations where DNS server is responsible for accepting the queries through client and responding back to the client s along with the results. As against, DHCP server is responsible for allocating the temporary addresses to the client machines for a lease time and then extending the lease according to the requirement.

DNS follows a certain hierarchy which does not allow the storage of all the domain names at one place instead it breaks it into subdomains and then the particular piece of information is stored on a particular server. Hence it is decentralized in manner. In contrast, DHCP server configures IP addresses of the clients from a pool of IP addresses and centrally handles all the tasks, in case a DHCP server is not directly attached to the clients then it uses a router to receive the DHCP broadcasts and relay them to the DHCP server.

Static is a fixed IP address. However, most workstations practice dynamic IP numbers. Hence at present, there are not sufficient static IP details in the IT world to manage all the request. Hence, there was a requirement to deliver PCs the capability to share the IP addresses.
Or visit this link or this one