Merge pull request #12390 from JoelKlint/patch-1

Instructions for adding a dns-server on windows
pull/12394/head
Medya Ghazizadeh 2021-09-02 10:20:37 -07:00 committed by GitHub
commit 314237b05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -101,8 +101,15 @@ systemctl restart NetworkManager.service
Also see `dns=` in [NetworkManager.conf](https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html). Also see `dns=` in [NetworkManager.conf](https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html).
#### Windows #### Windows
Open `Powershell` as Administrator and execute the following
```sh
Add-DnsClientNrptRule -Namespace ".test" -NameServers "$(minikube ip)"
```
TODO The following will remove any matching rules, before creating one. This is helpful if your minikube has a new ip
```sh
Get-DnsClientNrptRule | Where-Object {$_.Namespace -eq '.test'} | Remove-DnsClientNrptRule -Force; Add-DnsClientNrptRule -Namespace ".test" -NameServers "$(minikube ip)"
```
## Testing ## Testing