Get the App
SLTechnology News&Howtos  ›  Servers  › 

Resolve issues that cannot be accessed by Github

Shulou Source: shulou.com Published: 2022-06-03 08:59:11 12月06日 Update

1 Reason:

Github domain name resolution causes occasional inaccessibility to Github websites.

When visiting the URL, search the hosts file first. If there is an IP corresponding to the URL, there is no need for DNS domain name resolution. Therefore, the IP of the URL can be configured as a static IP to reduce the resolution process and improve the access speed.

2 operation

Add the following to the hosts file (located at C:\Windows\System32\drivers\etc):

192.30.253.113 github.com

185.199.108.153 github.github.io

151.101.72.133 assets-cdn.github.com

151.101.185.194 github.global.ssl.fastly.net

3 Refresh network DNS cache

Open the dos window and execute: ipconfig /flushdns

Now you can enjoy visiting Github.

Spring Boot develops small but complete web projects: edu.51cto.com/sd/091c7

Tags: URL domain name file pleasure location reason cache website network process speed static project development search question Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker NVidia MariaDB vpn