Today I found that the github database project can be accessed, but the picture can not be displayed. F12 read the report error cause is ERR_CERT_COMMON_NAME_INVALID.

  • DNS pollution
  • Host setting error
  • DNS was officially updated, but THE DNS cache was not updated, resulting in incorrect resolution

Solutions:

1. Address acquisition:

Use webmaster tools to find the fastest DNS address resolution. Chinaz, IPAddress.com, etc. Then click on your Github and it doesn’t show up.

Find the secondary domain name that corresponds to himraw.githubusercontent.com

Go to the website mentioned above to find the best IP address.

2. Modify the hosts file:

I am running Windows. The hosts file is stored in C:\Windows\System32\drivers\etc. Add the obtained IP address to the hosts file and copy the hosts file without permission to change it.

2021 1/10/18 valid, lazy can directly add the following content.

# GitHub Start 140.82.113.3 github.com 140.82.114.20 gist.github.com 151.101.184.133 assets-cdn.github.com 151.101.184.133 199.232.28.133 151.101.184.133 raw.githubusercontent.com raw.githubusercontent.com Gist.githubusercontent.com 151.101.184.133 151.101.184.133 cloud.githubusercontent.com camo.githubusercontent.com 199.232.96.133 151.101.184.133 199.232.68.133 avatars0.githubusercontent.com avatars.githubusercontent.com Avatars0.githubusercontent.com 199.232.28.133 199.232.28.133 at avatars0.githubusercontent.com Avatars1.githubusercontent.com 151.101.184.133 151.101.108.133 at avatars1.githubusercontent.com Avatars1.githubusercontent.com 151.101.184.133 199.232.28.133 at avatars2.githubusercontent.com Avatars2.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars3.githubusercontent.com Avatars3.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars4.githubusercontent.com Avatars4.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars5.githubusercontent.com Avatars5.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars6.githubusercontent.com Avatars6.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars7.githubusercontent.com Avatars7.githubusercontent.com 151.101.184.133 199.232.68.133 at avatars8.githubusercontent.com Avatars8.githubusercontent.com 199.232.96.133 avatars9.githubusercontent.com # making EndCopy the code

After that, the picture cannot be displayed again. Update the IP