MAC system

1. Open the ipaddress.com web page and find the corresponding IP addresses of the following three urls. My results are as follows:

140.82.114.4 github.com 
185.199.108.153 assets-cdn.github.com 
199.232.69.194 github.global.ssl.fastly.net
Copy the code

2. Modify the sudo vi /etc/hosts file (read-only for common users) with the superuser permission, copy the contents to the end of the file, and save the file.

3. Run ping github.com to view the result.

64 bytes from 140.82.114.4: icmp_seq=0 TTL =48 time=320.110 ms 64 bytes from 140.82.114.4: Icmp_seq =1 TTL =48 time=319.992 ms 64 bytes from 140.82.114.4: ICmp_seq =2 TTL =48 time=320.131 ms...Copy the code

Windows system

1. The first step is the same as above: find the corresponding IP addresses of the three urls

2. Change the permissions on C:\Windows\System32\drivers\etc\hosts files. Right-click the file and select “Properties”, then assign various permissions to the current user in the “Security” column), then copy the same content to the end of the file and save it.

3. Run the following command on the terminal to refresh the DNS resolution cache

 ipconfig /flushdns
Copy the code

4. Run ping github.com to view the result.

Reply from 140.82.114.4: bytes =32 time =212 ms TTL=44 Reply from 140.82.114.4: bytes =32 time =212 ms TTL=44...Copy the code

conclusion

As expected, technology is the first productivity, changed after the page no longer stuck, enjoy CV code!