wsl dns问题

Windows Power shell

ipconfig /all
获取DNS服务器 : 192.168.31.1

wsl:

sudo vim /etc/resolv.conf

写入以下内容:
nameserver 192.168.31.1

你可能感兴趣的:(wsl dns问题)