Home >Common Problem >What is the role of dns
The function of dns is to resolve domain names (web addresses) into IP addresses. DNS refers to the domain name system, which is a distributed database that can map domain names and IP addresses to each other. It allows people to access the Internet more conveniently without having to remember IP strings that can be directly read by machines. Domain name resolution process: 1. The client sends a domain name query request to the DNS server; 2. The DNS server informs the client of the IP address of the Web server; 3. The client communicates with the Web server.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
What is dns? What is the function?
DNS is the domain name resolution protocol
DNS is the abbreviation of Domain Name System (Domain Name System) and is a core service of the Internet. As a distributed database that can map domain names and IP addresses to each other, it can make people access the Internet more conveniently without having to remember IP strings that can be directly read by machines. This is also the official statement of DNS.
To put it bluntly: communication is carried out through IP addresses on the Internet. However, IP addresses are expressed in numbers, which are difficult to remember (such as 116.213.120.232), so each IP is given a domain name that is easier for humans to remember (such as www.google.com), and DNS is used to resolve the domain name into IP (parse the naming format that is easy for people to understand into a format that the computer can understand, or translate the IP into a domain name)
The role of the DNS service: Resolve the domain name into an IP address.
DNS links domain names and IP addresses for services, so you don’t have to enter the IP address, but access the website by entering the URL. Each IP address can have a hostname, which consists of one or more strings separated by decimal points.
The client sends a domain name query request to the DNS server (the DNS server has its own IP address)
The DNS server informs the client of the web server IP address
Communication between client and Web server
What is the dns server used for?
The role of the DNS server is to convert domain names into IP addresses that can be recognized by the network. First of all, in order to facilitate access to servers on the network, each server is assigned a different IP address. However, there are too many websites on the Internet, and it is impossible to remember the IP address of each website. At this time, domain names appear.
DNS is a core service in the Internet. It is a distributed database used to map domain names and IP addresses to each other. It translates simple and clear domain names into IP addresses that can be recognized by computers, allowing users to Access the Internet faster and more easily. Simply put, DNS is equivalent to a phone book on the Internet, recording IP addresses and corresponding domain name information, making it easy for users to query and access.
dns domain name resolution process
Suppose the host in the picture wants to know the IP address of the domain name y.abc.com. The host first makes a recursive query to its local name server. After receiving the request for recursive query, the local domain name server also queries a root domain name server using recursive query. After receiving the request for recursive query, the root domain name server uses recursive query to query a top-level domain name server. After receiving the request for recursive query, the top-level domain name server uses recursive query to query a certain authority domain name server.
When the IP address corresponding to the domain name is queried, the query results will be passed between the previously entrusted domain name servers and finally returned to the user host
Since the recursive query places too much burden on the queried domain name server, The following pattern is usually adopted: the query from the requesting host to the local name server is a recursive query, while the remaining queries are iterative queries.
The host first performs a recursive query to its local domain name server, and the local domain name server uses an iterative query. It first queries a root domain name server, and the root domain name server tells the local domain name server. The local domain name server performs an iterative query to the top-level domain name server for the IP address of the top-level domain name server that should be queried next time. The top-level domain name server tells the local domain name server the IP address of the authority domain name server that should be queried next time. The local domain name server performs an iterative query to the authority domain name server. The authority domain name server tells the local domain name server the IP address of the domain name being queried. The local domain name server finally tells the host the result
If a user has queried the IP address of the domain name y.abc.com not long ago, the IP address corresponding to the domain name should be stored in the cache of the local domain name server.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is the role of dns. For more information, please follow other related articles on the PHP Chinese website!