add systemd-resolved to ingress-dns documentation

pull/18958/head
Gabriel Pelouze 2024-04-23 11:46:05 +02:00 committed by Medya Ghazizadeh
parent 8e5496ed36
commit bb1c70d8a6
1 changed files with 16 additions and 0 deletions

View File

@ -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 %}}