From 5287219f5565654e3bc7fcc51d1879929d81a77b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 11 Feb 2020 11:12:49 +0000 Subject: [PATCH] Make sure resolv.conf is using the systemd-resolved stub resolver --- cookbooks/networking/recipes/default.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index d9e264cd9..cfc04cbef 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -215,6 +215,10 @@ template "/etc/systemd/resolved.conf.d/99-chef.conf" do notifies :restart, "service[systemd-resolved]", :immediately end +link "/etc/resolv.conf" do + to "../run/systemd/resolve/stub-resolv.conf" +end + if node[:networking][:tcp_fastopen_key] fastopen_keys = data_bag_item("networking", "fastopen") -- 2.43.2