add systemd-resolved to ingress-dns documentation
parent
8e5496ed36
commit
bb1c70d8a6
|
@ -117,6 +117,22 @@ cat /etc/resolv.conf | grep nameserver
|
|||
nameserver 127.0.0.1
|
||||
```
|
||||
|
||||
## Linux OS with systemd-resolved
|
||||
|
||||
Your Linux OS likely uses `systemd-resolved` if the first line of `/etc/resolv.conf` contains `This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8)`.
|
||||
|
||||
Run the following commands to add the Minikube DNS for `.test` domains:
|
||||
|
||||
```bash
|
||||
sudo mkdir /etc/systemd/resolved.conf.d
|
||||
sudo tee /etc/systemd/resolved.conf.d/minikube.conf << EOF
|
||||
[Resolve]
|
||||
DNS=$(minikube ip)
|
||||
Domains=~test
|
||||
EOF
|
||||
sudo systemctl restart systemd-resolved
|
||||
```
|
||||
|
||||
{{% /linuxtab %}}
|
||||
|
||||
{{% mactab %}}
|
||||
|
|
Loading…
Reference in New Issue