> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/microsoft-suite/windows-subset-for-linux/wsl-no-internet-connection.md).

# WSL no internet connection

1. DNS issues:

```bash
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
```

The reason this error occurs is because Windows automatically generates resolv.conf file with wrong nameserver.

2\. Open Command prompt as administrator

3\. Use following commands:

```bash
netsh winsock reset 
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
```

4\. Reboot machine
