系统相关
首页 > 系统相关> > WSL2 Ubuntu: ping: hostname: Temporary failure in name resolution

WSL2 Ubuntu: ping: hostname: Temporary failure in name resolution

作者:互联网

 

rm /etc/resolv.conf
vi /etc/resolv.conf
写入下面的内容
nameserver 192.168.2.1
nameserver 114.114.114.114
domain localnet.local

 

一开始是查Temporary failure in name resolution 的相关问题 ,结果一点用没有,浪费时间

结论:关于WSL2  一定要带上 "WSL2"

 

转载自

https://colhountech.com/2021/04/01/wsl2-ubuntu-ping-hostname-temporary-failure-in-name-resolution/

 

Now it does what I want it to do. Maybe not what the WSL guys intended, but there you go!

标签:what,Temporary,name,WSL2,failure,conf,resolution
来源: https://blog.csdn.net/viaco2love/article/details/118030367