当前位置:网站首页>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
边栏推荐
- [network security] sharing of experience and ideas of an emergency battle
- Leetcode topic [array] -36- effective Sudoku
- @The difference between notempty, @notnull and @notblank
- PHP and WMI – explore windows with PHP
- Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed
- What elements are indispensable for the development of the character? What are the stages
- Technology Review: Interpretation of cloud native architecture trend in 2022
- Noi Mathematics: Dirichlet convolution
- @Detailed explanation of valid annotation usage
- Sword finger offer II 095 Longest common subsequence
猜你喜欢

The elephant turns around and starts the whole body. Ali pushes Maoxiang not only to Jingdong
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)

Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034

Exercise: completion

【LeetCode】40. Combined summation II (2 strokes of wrong questions)

Three tier architecture experiment

BGP - basic concept
![[data visualization application] draw spatial map (with R language code)](/img/2d/04e5015573d10bdd6325ae497bfeb3.jpg)
[data visualization application] draw spatial map (with R language code)
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!

Tencent and China Mobile continued to buy back with large sums of money, and the leading Hong Kong stocks "led" the market to rebound?
随机推荐
An easy problem
Why study discrete mathematics
Notes on dashboard & kuboard installation in kubernetes cluster
An interview question record about where in MySQL
Data7202 statistical analysis
Explain @builder usage
What is the slice flag bit
Mongodb basic concept learning - Documentation
Personal blog system graduation project opening report
Echo command – output a string or extract the value of a shell variable
Location object
Understanding the dynamic mode of mongodb document
Find command – find and search for files
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
cacacahe
Research Report on marketing channel analysis and competitive strategy of China's polycarbonate industry 2022
Gb28181 protocol -- timing
Three tier architecture experiment
You can't specify target table for update in from clause error in MySQL
Uname command – displays system information