Merge pull request #13033 from oprudkyi/patch-1

Clarify documentation for using ingress-dns plugin on Linux with Network Manager
pull/13117/head
Sharif Elgamal 2021-12-07 11:06:20 -08:00 committed by GitHub
commit 2b9979ec21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 4 deletions

View File

@ -61,6 +61,8 @@ minikube addons enable ingress-dns
{{% tabs %}} {{% tabs %}}
{{% linuxtab %}} {{% linuxtab %}}
## Linux OS with resolvconf
Update the file `/etc/resolvconf/resolv.conf.d/base` to have the following contents. Update the file `/etc/resolvconf/resolv.conf.d/base` to have the following contents.
``` ```
@ -86,15 +88,34 @@ If your Linux OS does not use `systemctl`, run the following commands.
See https://linux.die.net/man/5/resolver See https://linux.die.net/man/5/resolver
When you are using Network Manager with the `dnsmasq` plugin, you can add an additional configuration file, but you need ## Linux OS with Network Manager
to restart NetworkManager to activate the change.
Network Manager can run integrated caching DNS server - `dnsmasq` plugin and can be configured to use separate nameservers per domain.
Edit /etc/NetworkManager/NetworkManager.conf and set `dns=dnsmasq`
```
[main]
dns=dnsmasq
```
Also see `dns=` in [NetworkManager.conf](https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html).
Configure dnsmasq to handle .test domain
```bash ```bash
sudo mkdir /etc/NetworkManager/dnsmasq.d/
echo "server=/test/$(minikube ip)" >/etc/NetworkManager/dnsmasq.d/minikube.conf echo "server=/test/$(minikube ip)" >/etc/NetworkManager/dnsmasq.d/minikube.conf
systemctl restart NetworkManager.service
``` ```
Also see `dns=` in [NetworkManager.conf](https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html). Restart Network Manager
```
systemctl restart NetworkManager.service
```
Ensure your /etc/resolv.conf contains only single nameserver
```bash
cat /etc/resolv.conf | grep nameserver
nameserver 127.0.0.1
```
{{% /linuxtab %}} {{% /linuxtab %}}