In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of a domain name pointing to multiple ip, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!
1. Domain name resolution with multiple ip instances
Simple sentence: add several more A records of different IP when dns parsing
For example:
In the picture above, I resolved the domain name to two different ip. After about ten minutes, we ping the result as follows.
You can see that one domain name has been resolved to multiple ip.
Another note: in figure 1, there is a line that is not filled in, so it is the default, you can customize to assign different ip to different lines.
2. DNS analysis schematic diagram of load balancing
DNS will return a different ip address according to the load balancing algorithm for each domain name request.
Third, the advantages and disadvantages of load balancing DNS parsing.
Advantages:
The configuration is simple, and there is no cost to hand over the load balancing work to the DNS server, which saves the trouble of management.
Disadvantages:
The addition and modification of records take some time to take effect (because DNS caches A records). Once a server goes down, it will take a long time to make it effective even if the A record is modified. During this period, DNS will still resolve the domain name to the offline server, resulting in user access failure. The load cannot be distributed according to demand, and DNS does not know the real load of each server, so the load effect is not very good.
The actual situation:
In the actual project deployment, we usually use DNS resolution on some servers and domain name resolution as the first-level load balancing. Then use NGINX load balancing as the second-level load balancing in the server.
The above is all the contents of the method of one domain name pointing to multiple ip, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.