From 3ad31af05e6fb182b784b3e1951c70665224a4b2 Mon Sep 17 00:00:00 2001 From: John Helmert III Date: Sat, 21 Dec 2024 20:42:42 -0800 Subject: [PATCH] roles/resolved: use stub-resolv.conf We want to route all queries through a single per-system resolver rather than applications doing their own black magic with upstream servers in /resolv.conf. In particular, without this, curl was adding a search domain to a fully qualified domain, naturally yielding an "unresolveable" domain that was calculated incorrectly. Signed-off-by: John Helmert III --- roles/resolved/tasks/resolved.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/resolved/tasks/resolved.yml b/roles/resolved/tasks/resolved.yml index fa41f0c..a13d7c5 100644 --- a/roles/resolved/tasks/resolved.yml +++ b/roles/resolved/tasks/resolved.yml @@ -1,7 +1,7 @@ --- - name: Link resolv.conf to resolved's stub ansible.builtin.file: - src: /run/systemd/resolve/resolv.conf + src: /run/systemd/resolve/stub-resolv.conf dest: /etc/resolv.conf owner: systemd-resolve group: systemd-resolve