From bb1c70d8a69697f0f6349cd7561eb9d14f3e3942 Mon Sep 17 00:00:00 2001 From: Gabriel Pelouze Date: Tue, 23 Apr 2024 11:46:05 +0200 Subject: [PATCH] add systemd-resolved to ingress-dns documentation --- .../en/docs/handbook/addons/ingress-dns.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/site/content/en/docs/handbook/addons/ingress-dns.md b/site/content/en/docs/handbook/addons/ingress-dns.md index 17d8572e3f..0b3e3f05c3 100644 --- a/site/content/en/docs/handbook/addons/ingress-dns.md +++ b/site/content/en/docs/handbook/addons/ingress-dns.md @@ -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 %}}