From a54c86b58479f516a306299c923008d2973901de Mon Sep 17 00:00:00 2001 From: pettai Date: Thu, 13 Jun 2024 09:31:52 +0200 Subject: [PATCH] use SUNETs resolver --- global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp | 5 +++++ .../etc/puppet/modules/dns/templates/knot/resolv.conf.erb | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 global/overlay/etc/puppet/modules/dns/templates/knot/resolv.conf.erb diff --git a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp index 78f93fe..3f241c9 100644 --- a/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp +++ b/global/overlay/etc/puppet/modules/dns/manifests/knotdns.pp @@ -9,6 +9,11 @@ class dns::knotdns( ensure => 'stopped', enable => false, } + # Use SUNETs resolvers directly (no local cache) + file { "/etc/resolv.conf": + ensure => "file", + content => template("dns/knot/resolv.conf.erb") + } # This is a control file used to skip these semi-heavy installation steps $control_file="/var/cache/cosmos/knotdns_install_complete.txt" diff --git a/global/overlay/etc/puppet/modules/dns/templates/knot/resolv.conf.erb b/global/overlay/etc/puppet/modules/dns/templates/knot/resolv.conf.erb new file mode 100644 index 0000000..cfd8651 --- /dev/null +++ b/global/overlay/etc/puppet/modules/dns/templates/knot/resolv.conf.erb @@ -0,0 +1,3 @@ +search sunet.se +nameserver 89.32.32.32 +nameserver 2001:6b0:89::32:32:32