[Daily Problems] The ultimate solution to the problem that Github cannot display pictures

foreword

Not long ago, I encountered the problem that github could not load pictures. I searched for the solution on the Internet, and added a string of ip addresses after the hosts file. At that time, I saw that it was solved, so I didn't delve into it. But just today, the problem of no pictures appeared again. I think it is better to know the reason and see what the problem is.

solution

According to the previous experience of changing the hosts file, the first judgment may be that there is a problem with the domain name resolution, and the ip address of the domain name may not be found in China, so we need to configure it ourselves. So F12, sure enough,
insert image description here
through https://www.ipaddress.com/ to query the domain name https://avatars.githubusercontent.com, and found

insert image description here
It seems that on the 26th, the bound ip of the domain name was updated.

Update the hosts file:
insert image description here
oh yeah
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43742184/article/details/113247975