Skip to content

Commit

Permalink
roles/resolved: use stub-resolv.conf
Browse files Browse the repository at this point in the history
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 <jchelmert3@posteo.net>
  • Loading branch information
ajakk committed Dec 22, 2024
1 parent c798482 commit 3ad31af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/resolved/tasks/resolved.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3ad31af

Please # to comment.