Home Common Problem What is the role of dns?

What is the role of dns?

Dec 01, 2020 pm 03:21 PM
dns

The role of dns: resolve domain names (web addresses) into IP addresses. This process is called DNS domain name resolution. The client sends a domain name query request to the DNS server; then the DNS server informs the client of the IP address of the Web server; and finally the client communicates with the Web server.

What is the role of dns?

DNSIntroduction

DNS is the domain name resolution protocol

DNS It is the abbreviation of 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 what to do. The IP number string read directly by the machine. 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

  • 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 IP address of the Web server

  • Client and Web server communication

DNS query process (it is very important to understand DNS A process based on the principle)

Through hierarchical management, hundreds of millions of domain name information around the world can be effectively managed (Similar to a company, the CEO only manages the managers of each department; each department The manager only manages each team leader in his own department; each team leader only manages the team members of his own group. At least this is a more effective management method)

The following is a client's request Visit www.benet.com, the process of this WEB server to understand the principle of DNS

 

1. The client (PC) requests the preferred DNS server (the preferred DNS server refers to your current The DNS server connected to the PC, Windows can use the ipconfig command to view) Initiate a request: "Do you know the IP of www.benet.com?" If the preferred DNS server knows it (generally if the preferred DNS server has resolved it before, then a period of The cache time, the default is three days. If it happens to be within the cache time, then the preferred server will know the IP of this domain name), then the preferred DNS server will directly return the IP address of the domain name to the client

2 . If there is no relevant information on the preferred DNS server, it cannot directly return the IP address of the domain name. At this time, the preferred DNS server will ask the root DNS server (all DNS servers know where the 13 DNS root servers in the world are). The root server may not know the specific IP address of www.benet.com, but it knows the IP of the first-level domain com (that is to say, the root server is only responsible for maintaining all first-level domains, so there are only a few hundred pieces of data here , although the amount of data is small, it accepts requests from all over the world, so the load is also very large)

3. The root server returns the IP address of com to the preferred DNS server

4. The preferred DNS server then requests the "com" DNS server: "Do you know the IP of www.benet.com?", but the com DNS server does not know the IP of www.benet.com, but the com DNS server does. The IP of benet.com,

5. "com" DNS server returns this information to the preferred DNS server

6. The preferred DNS server then requests the "benet.com" DNS server, this Of course, the benet.com server will know the IP address of www.benet.com

7. The "benet.com" DNS server will return this information to the preferred DNS server

8. Preferred DNS The server returns the obtained IP address of www.benet.com to the client

9. The client accesses the WEB server based on the obtained IP address of www.benet.com

10. The WEB server returns relevant data

Domain name space structure

  

Expansion:

Why must I set up DNS to access the Internet? Some friends may find out why I can log in to QQ and MSN but cannot open the web page? In fact, most of the reasons are caused by DNS server failure. The DNS server address is unique and is provided by operators to end users to resolve the relationship between IP addresses and domain names. If the DNS server address is not set, then it cannot be queried. Naturally, the web page cannot be opened depending on the address. However, instant messaging software such as QQ and MSN use the UDP transmission protocol, which is an unreliable transmission protocol. There is no need to provide a DNS server address, and you can still log in.

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve win11 DNS server error How to solve win11 DNS server error Jan 10, 2024 pm 09:02 PM

We need to use the correct DNS when connecting to the Internet to access the Internet. In the same way, if we use the wrong dns settings, it will prompt a dns server error. At this time, we can try to solve the problem by selecting to automatically obtain dns in the network settings. Let’s take a look at the specific solutions. How to solve win11 network dns server error. Method 1: Reset DNS 1. First, click Start in the taskbar to enter, find and click the "Settings" icon button. 2. Then click the "Network & Internet" option command in the left column. 3. Then find the "Ethernet" option on the right and click to enter. 4. After that, click "Edit" in the DNS server assignment, and finally set DNS to "Automatic (D

Fix: Windows 11 update error 0x80072ee7 Fix: Windows 11 update error 0x80072ee7 Apr 14, 2023 pm 01:31 PM

Certain Windows 11 updates may cause issues and larger builds that cause performance errors. For example, if you don’t fix update error 0x80072ee7, it might make your machine behave erratically. It triggers in different situations and fixing it depends on the reason behind the glitch. Sometimes, users report that this issue occurs when installing certain Windows updates. Browse without random security notifications and system errors. If this happens, your computer may have unwanted programs or malware. The reasons behind the errors vary, ranging from antivirus issues to other software interfering with Windows updates. How do Windows update errors occur? If 0x appears while browsing

How to solve Steam error code 105 Unable to connect to server? How to solve Steam error code 105 Unable to connect to server? Apr 22, 2023 pm 10:16 PM

Steam is a popular game library. It allows its users to play games and download games to their Steam accounts. Since it is a cloud-based library, it allows users to use any computer and allows them to store many games within the limited computer memory. These features make it very popular among the gamer community. However, many gamers have reported seeing the following error code in their systems. Error code 105 - Unable to connect to server. Server may be offline error This error mainly occurs due to some issues in the connection. When you see this issue in your system, try the following general fixes and check if the issue is resolved. Restart your router. Restart your system. Still see a problem? Don't worry

How to fix Xbox Series S/X download speeds, reduced ping and lag How to fix Xbox Series S/X download speeds, reduced ping and lag Apr 16, 2023 pm 04:49 PM

Xbox consoles have improved dramatically over the years. Over the years, games have evolved with life-like features that gamers can't seem to get enough of. Playing your favorite games on Xbox can be a completely engrossing experience. However, sometimes using these advanced features, we end up with lag or ping issues if the internet speed is not that good. Sometimes we want games to download faster. Today, games like Forza Horizon 5 and Mortal Kombat require over 100GB of RAM. Downloading such games can take a long time if we don't have the right internet settings to help us. Method 1: Pass

How to assign multiple IP addresses in one LAN card on Windows 10/11 How to assign multiple IP addresses in one LAN card on Windows 10/11 May 30, 2023 am 11:25 AM

Sometimes it is necessary to assign multiple addresses to a single LAN card. For example, if you need to run multiple websites with unique IP addresses or bind applications to different IP addresses, etc. If you are thinking about how to assign multiple addresses to a single network interface card or LAN card, this article will help you achieve it. Follow the steps below till the end and it will be done. So let’s get started! Assign multiple IP addresses to one LAN card Step 1: Use the Windows+R keys together to open the run prompt and type ncpa.cpl, then press the Enter key to open the Network Connection window. Step 2: Right click on your network adapter Ethernet or WiFi option and click Properties. Step 3: From the Properties Window

How to change DNS settings on Windows 11 How to change DNS settings on Windows 11 May 01, 2023 pm 06:58 PM

Your ISP is configured to provide a default Domain Name System (DNS) when setting up your Internet connection. This poses various security threats and slows down the internet, so DNS servers must be assigned manually. Browse this detailed guide to learn how to change DNS settings on your Windows 11 computer and protect your online presence. How to change DNS settings on Windows 11? 1. Using the Settings app Use the + shortcut to go to the Settings app. WindowsI select Network & Internet from the left sidebar, then Wi-Fi or Ethernet from the right, depending on your internet connection. Scroll down and select Hardware Properties. Find the DNS server assignment setting and click on it

Fix: DNS server not responding issue in Windows 11 Fix: DNS server not responding issue in Windows 11 Jun 01, 2023 pm 04:52 PM

When Windows users are unable to browse or load web pages on the browser on their system, they happen to think of all the factors that can cause this issue. Although many Windows users resolve this issue on their systems, it throws an error message stating “DNS server is not responding” and users don’t know how to resolve this issue to use a stable internet connection. We have come up with a solution in this article that will surely solve this problem. However, try these solutions beforehand – try restarting your router and check if this is causing the problem. Change browser applications. That said, if you're using the Microsoft Edge browser, close it and open Google

Why NameResolutionError(self.host, self, e) from e and how to solve it Why NameResolutionError(self.host, self, e) from e and how to solve it Mar 01, 2024 pm 01:20 PM

The reason for the error is NameResolutionError(self.host,self,e)frome, which is an exception type in the urllib3 library. The reason for this error is that DNS resolution failed, that is, the host name or IP address attempted to be resolved cannot be found. This may be caused by the entered URL address being incorrect or the DNS server being temporarily unavailable. How to solve this error There may be several ways to solve this error: Check whether the entered URL address is correct and make sure it is accessible Make sure the DNS server is available, you can try using the "ping" command on the command line to test whether the DNS server is available Try accessing the website using the IP address instead of the hostname if behind a proxy