From: Tom Hughes Date: Tue, 11 Feb 2020 11:12:49 +0000 (+0000) Subject: Make sure resolv.conf is using the systemd-resolved stub resolver X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5287219f5565654e3bc7fcc51d1879929d81a77b?ds=sidebyside Make sure resolv.conf is using the systemd-resolved stub resolver --- 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")