Skip to content

Instantly share code, notes, and snippets.

@rponte
Last active February 8, 2022 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rponte/53407078ceec1fa41dfe0ed7bdb0dc3e to your computer and use it in GitHub Desktop.
Save rponte/53407078ceec1fa41dfe0ed7bdb0dc3e to your computer and use it in GitHub Desktop.
WSL2: resetting network (WSL2 DNS issue)
##
# 1. run theses commands on PowerShell as admin
# 2. restart windows
##
wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
netsh winsock reset
shutdown /r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment