Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
epomatti authored Apr 15, 2022
1 parent 51c896d commit bc039dd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ This will help you prevent name resolution issues when coding and falling into t

Clone the repo, `cd` into it and run the configuration script:

ℹ️ This will delete `/etc/resolv.conf` and `/etc/wsl.conf` files

```bash
# Debian/Ubuntu
sudo sh ./run.sh
```

You can now restart WSL from your favorite Windows terminal and it should work:
The above command will delete `/etc/resolv.conf` and `/etc/wsl.conf` files, so don't need to worry on a fresh installation.

You can now restart WSL from your favorite Windows terminal, and it should work:

```ps1
wsl --shutdown
Expand All @@ -27,14 +27,16 @@ The [`run.sh`](./run.sh) script will perform these tasks:

1. Delete the following files: `/etc/wsl.conf` and `/etc/resolv.conf`
2. Create the new ".conf" files (pre-created in the [dist](./dist/) folder) setting Google DNS for name resolution and preventing WSL from overriding it:
```sh
# /etc/wsl.conf
[network]
generateResolvConf = false

# /etc/resolv.conf
nameserver 8.8.8.8
```
```sh
# /etc/wsl.conf
[network]
generateResolvConf = false

# /etc/resolv.conf
nameserver 8.8.8.8
```

3. Make `/etc/resolv.conf` immutable

## Contributing
Expand Down

0 comments on commit bc039dd

Please sign in to comment.