一行代码搞定
/mnt/c/Windows/system32/ipconfig.exe /all | grep --color=auto "DNS Servers" | cut -d ":" -f 2 | grep --color=auto -e '^ [0-9]' | sed 's/^/nameserver/'| sudo tee /etc/resolv.conf > /dev/null
一行代码搞定
/mnt/c/Windows/system32/ipconfig.exe /all | grep --color=auto "DNS Servers" | cut -d ":" -f 2 | grep --color=auto -e '^ [0-9]' | sed 's/^/nameserver/'| sudo tee /etc/resolv.conf > /dev/null
本文标题:win10 linux子系统DNS修复
本文链接:https://www.haomeiwen.com/subject/tfuvuhtx.html
网友评论