当前位置:网站首页>DNS domain name system
DNS domain name system
2022-06-25 06:23:00 【Programmer community】
Anyone who knows Ethernet knows , The message is based on the purpose IP The address to send , And when we're browsing the web , You don't have to know the other server's IP Address , Instead, a web address , Domain name
DNS
Why use domain names instead of IP Address , Obvious , Take Baidu server for example :
- One of Baidu ip The address is :202.108.22.5
- Baidu's domain name is :www.baidu.com
Which of the two ways is easier to remember ?
Domain names, of course
But it also creates a problem , People remember domain names , But the network sends messages , Messages don't use domain names directly , The message needs the other party's IP Address , So you have to get it through the domain name IP Address
From whom ?
So many web sites around the world , So many domain names , Every domain name has its own IP Address , There are more than one IP Address , These domain names and IP Addresses map to each other , It's a distributed database , This distributed database is stored on some servers , We call it DNS Domain name server
DNS
Domain Name System, perhaps Domain Name Service, Domain name system or domain name service , Its main function is to transfer our familiar Web address ( domain name )“ translate ” It can be understood by computers IP Address , This process is called DNS Domain name resolution
What is the process of domain name resolution ?

DNS This is the process of domain name resolution , Here's the problem , Why does the system go to DNS The domain name resolution request sent by the server is UDP Message instead of TCP?
It's also very simple , because UDP There is no process of connecting and disconnecting , Faster
DNS How to resolve a domain name ?
take www.baidu.com Come on , The real domain name is www.baidu.com., Last . Called the root domain , Because each domain has a root domain , So you can omit
and .com or .net It's a primary domain name , We call it “ Top-level domain name ”
Again, the first level domain name is “ Subdomains ”, Like here .baidu, This level of domain name can be registered by users
The next level is the hostname , Also known as “ Three level domain name ”, such as www, This is the name assigned by the user to the server in his own domain , It's something that users can assign at will
The process of domain name resolution becomes hierarchical search
- The system is in the local computer first DNS Richter , If you find it, go back to
- If you can't find it, go to the root server , Take a look at the root server .com, Just manage .com Domain DNS Server's IP The address is returned to the system , The system takes this IP Just go to .com In the domain of
- .com Not at all www.baidu.com This domain name , But it knows the next level domain .baidu Of the server IP Address , Put the IP Send it to the system , Let the system go .baidu Ask in the library
- The system takes this IP ask again .baidu, It happens that www.baidu.com This domain name , So I put this domain name IP The address was sent to the system
边栏推荐
- Global and Chinese gallium nitride (GAN) market output value scale forecast and application prospect analysis report 2022
- Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
- What happens when redis runs out of memory
- John
- No one reads the series. Source code analysis of copyonwritearraylist
- MySQL tuning --01--- optimization steps and system performance parameters
- Location object
- The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
- Uname command – displays system information
- What are the reasons why most webmasters choose Hong Kong site group servers?
猜你喜欢

RT thread i/o device model and layering

@Detailed explanation of valid annotation usage

Uni app wechat applet customer service chat function

The elephant turns around and starts the whole body. Ali pushes Maoxiang not only to Jingdong

Notes on dashboard & kuboard installation in kubernetes cluster

Digitalization, transformation?
![[Suanli network] problems and challenges faced by the development of Suanli network](/img/90/1d537de057113e2b4754e76746f256.jpg)
[Suanli network] problems and challenges faced by the development of Suanli network
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
Vscode voice notes to enrich information (Part 1)

Understand what MTU is
随机推荐
JS implementation mouse can achieve the effect of left and right scrolling
Global and Chinese kaolin market operation scale and investment development proposal report 2022
JD 8 fleet stores search history, deletes history, clears history (not finished)
Vegetables sklearn - xgboost (2)
Getting started with Silverlight development 1
[kicad image] download and installation
What is the IP address
Gb28181 protocol -- timing
Wireless industrial Internet of things data monitoring terminal
@Detailed explanation of valid annotation usage
What happens when redis runs out of memory
Sword finger offer II 095 Longest common subsequence
Netstat command – displays network status
Forecast report on output demand and supply scale of global and Chinese structural ceramics market for semiconductor equipment (2022 Edition)
BGP - basic concept
Digitalization, transformation?
Face++ realizes face detection by flow
Socket, network model notes
Explain @builder usage
Analysis report on global and Chinese pharmaceutical excipients industry competition and marketing model 2022-2028