The Linux subsystem installation under WSL win11 cannot resolve the name or address of the server

foreword

I wanted to deploy docker on win11, so I found wsl, but when I installed it on powershell, I always reported an error that the name or address of the server could not be resolved.
The general solution for surfing the Internet is to manually modify the DNS 114.114. error.

During a certain surfing, it was found that the above error was due to the inaccessibility of raw.githubusercontent.com, so manually added hosts, and the problem was solved.

solution

  1. Open https://site.ip138.com/raw.Githubusercontent.com/ to view the following IP, copy one, and ping it to see if it works. If it doesn’t work, use the other pings below.
    insert image description here
    insert image description here
  2. Modify hosts
    insert image description here

insert image description here
You're done!

Guess you like

Origin blog.csdn.net/weixin_45827203/article/details/129089649