In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to speed up the access to Github, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Preface
GitHub believes that everyone is no stranger, the absolute trump card in the open source world, it is not too much to say that it is the cornerstone of small and medium-sized Internet companies.
However, due to some reasons, git-related operations are very slow in China, and there are many reasons for the slow access speed of GitHub in China, but the most direct and main reason is that the domain name of GitHub distribution acceleration network is contaminated by dns. Of course, slowness is something that every engineer can't stand.
Popularize the science about DNS pollution:
Domain server cache contamination (DNS cache pollution), also known as domain name server cache poisoning (DNS cache poisoning), refers to some domain name server packets deliberately or inadvertently created to point the domain name to an incorrect IP address. Generally speaking, there are reliable domain servers on the Internet, but in order to reduce the traffic pressure on the network, the general domain name servers will temporarily store the resolution records obtained from the upstream domain name server. the next time another machine requests to resolve the domain name, you can provide the service immediately. Once the cache of the local domain name server related to the domain is contaminated, the computer in the domain will be directed to the wrong server or server's URL.
Let's introduce the modification of Host, which is equivalent to bypassing domestic DNS parsing and directly accessing the CDN node of GitHub, thus achieving the goal of acceleration.
Steps
The first step
Open the IPAddress.com website and query the IP addresses corresponding to the following three URLs
Github.comassets-cdn.github.comgithub.global.ssl.fastly.net
Step two
Modify the local computer system hosts file
Windows: C:\ Windows\ System32\ drivers\ etclinux: / etc/hosts
Add the following code directly at the end:
192.30.253.112 github.com151.101.184.133 assets-cdn.github.com151.101.185.194 github.global.ssl.fastly.net
Step three
Flush the system dns cache (Windows)
Linux skips this step
Use the WIN+R shortcut to open the run window, enter the command: cmd and enter to enter the command line window. Then enter the command: ipconfig / flushdns enter and refresh the local dns cache data.
Thank you for reading this article carefully. I hope the article "how to accelerate access to Github" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.