What is a Dynamic Host Configuration Protocol (DHCP) server?

回眸只為那壹抹淺笑 提交于 2020-01-03 06:41:26

问题


What is a Dynamic Host Configuration Protocol(DHCP) server? and What is the difference between DHCP server and a Domain Name Server(DNS) server?


回答1:


DHCP (Dynamic Host Configuration Protocol)

is for assigning IP addresses (or other network parameters) to devices so they can communicate with each other.

If you for example want to establish a wireless connection, then you need amongst other things request a DHCP server that assigns your device an IP address so you can communicate with other nodes.


DNS (Domain Name System)

is a hierarchical decentralised service which associates informations with domain names.

If you for example want to request google.com you first need to figure out what the corresponding IP address is. Therefore you request a DNS server.




回答2:


DHCP is a layer 2 network protocol that will offer IP address from its pool to device not connected to the network, but who wanted to. It's used in LAN network.

DNS is like a dictionary. Consider you are trying to go to stackoverflow.com, so your device isn't able to know what's the IP address of stackoverflow.com. He will ask to DNS server to found the IP address for him.

DHCP = IP dynamic allocation

DNS = IP retrieval of an existing and registered device



来源:https://stackoverflow.com/questions/50097188/what-is-a-dynamic-host-configuration-protocol-dhcp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!