From 8018ce0eb1d6579ec288002bb4a9ed85b7b2dea5 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 24 Jul 2026 11:21:10 -0500 Subject: [PATCH] fix(resolvers): put DNSStubListener=no in resolved.conf.d, not unit dropins Butane unit dropins write to /etc/systemd/system/.d/, but DNSStubListener is a systemd-resolved config option that belongs in /etc/systemd/resolved.conf.d/. Use storage.files instead so Ignition places it in the correct location. --- tofu/flatcar-resolver.bu | 12 ++++++------ tofu/flatcar-resolver2.bu | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tofu/flatcar-resolver.bu b/tofu/flatcar-resolver.bu index 909e422..dc2df49 100644 --- a/tofu/flatcar-resolver.bu +++ b/tofu/flatcar-resolver.bu @@ -25,6 +25,12 @@ storage: inline: | nameserver 1.1.1.1 nameserver 9.9.9.9 + - path: /etc/systemd/resolved.conf.d/no-stub.conf + mode: 0644 + contents: + inline: | + [Resolve] + DNSStubListener=no - path: /etc/systemd/network/00-eth0.network mode: 0644 contents: @@ -118,12 +124,6 @@ storage: systemd: units: - - name: systemd-resolved.service - dropins: - - name: no-stub.conf - contents: | - [Resolve] - DNSStubListener=no - name: docker.service enabled: true - name: unbound.service diff --git a/tofu/flatcar-resolver2.bu b/tofu/flatcar-resolver2.bu index 363f2e6..967f63a 100644 --- a/tofu/flatcar-resolver2.bu +++ b/tofu/flatcar-resolver2.bu @@ -25,6 +25,12 @@ storage: inline: | nameserver 1.1.1.1 nameserver 9.9.9.9 + - path: /etc/systemd/resolved.conf.d/no-stub.conf + mode: 0644 + contents: + inline: | + [Resolve] + DNSStubListener=no - path: /etc/systemd/network/00-eth0.network mode: 0644 contents: @@ -118,12 +124,6 @@ storage: systemd: units: - - name: systemd-resolved.service - dropins: - - name: no-stub.conf - contents: | - [Resolve] - DNSStubListener=no - name: docker.service enabled: true - name: unbound.service