From 20cd6ac5299a725558a85df7c93c34f4a67b15d5 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 28 Jan 2025 14:26:18 +0100 Subject: Resolver: Use systemd-resolved. --- .../templates/etc/systemd/resolved.conf.d/local.conf.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/common/templates/etc/systemd/resolved.conf.d/local.conf.j2 (limited to 'roles/common/templates/etc/systemd') diff --git a/roles/common/templates/etc/systemd/resolved.conf.d/local.conf.j2 b/roles/common/templates/etc/systemd/resolved.conf.d/local.conf.j2 new file mode 100644 index 0000000..044170a --- /dev/null +++ b/roles/common/templates/etc/systemd/resolved.conf.d/local.conf.j2 @@ -0,0 +1,11 @@ +[Resolve] +LLMNR=no +{% if ansible_processor[1] is search('^(Genuine)?Intel.*') and not ansible_virtualization_role == 'guest' %} +DNS=127.0.0.1 +# Quad9 +FallbackDNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net +{% else %} +# Quad9 +DNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net +{% endif %} +Domains=fripost.org -- cgit v1.2.3