Merge pull request #13033 from oprudkyi/patch-1
Clarify documentation for using ingress-dns plugin on Linux with Network Managerpull/13117/head
commit
2b9979ec21
|
@ -61,6 +61,8 @@ minikube addons enable ingress-dns
|
|||
{{% tabs %}}
|
||||
{{% linuxtab %}}
|
||||
|
||||
## Linux OS with resolvconf
|
||||
|
||||
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
|
||||
|
||||
When you are using Network Manager with the `dnsmasq` plugin, you can add an additional configuration file, but you need
|
||||
to restart NetworkManager to activate the change.
|
||||
## Linux OS with Network Manager
|
||||
|
||||
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
|
||||
sudo mkdir /etc/NetworkManager/dnsmasq.d/
|
||||
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 %}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue