You are referring to two different severs. A DNS servers and a DHCP server. A DNS server is called a Domain Name Server, it translates IP addresses into English so we can understand it. For instance a website has two names, the IP address 192.168.40.10 and that is matched up to a name in the DNS server such as www.Microsoft.com. So the DNS server gives you the name and vice versa is you wanted to find the IP address of www.Microsoft.com then there is a DNS server that will tell you its 192.168.40.10 (not real address). The DHCP or Dynamic Host Configuration Protocol, is a program that gives you your PC address, such as 192.168.43.99, it is done automatically when you log in, this way your computer has a unique identifier so someone can send you an email and it will only go to you because you have a unique number given to you by your DHCP server.