Skip to content

Commit

Permalink
add systemd-resolved to ingress-dns documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gpelouze committed Apr 23, 2024
1 parent 9f3275b commit 2079d0f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site/content/en/docs/handbook/addons/ingress-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}}
Expand Down

0 comments on commit 2079d0f

Please sign in to comment.