summaryrefslogtreecommitdiffstats
path: root/roles/network/templates
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-20 23:37:21 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-21 00:46:50 +0200
commitf93dd15e52140d8e2fb5462ed009a954f1885572 (patch)
tree96bb58b08b54997669e6a9c415a53a7f4d1bd277 /roles/network/templates
parent36ec6f1a3961abbbb41495dd4d141871f6675fea (diff)
Add wireguard role and fix testing
The testing was failing because the use of the example files with the same domain names, resulted in the files and the molecule variable were being merged and therefore running tasks that would fail on test (example, setting a fake VPN connection that wouldn't start).
Diffstat (limited to 'roles/network/templates')
-rw-r--r--roles/network/templates/resolved.conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/network/templates/resolved.conf.j2 b/roles/network/templates/resolved.conf.j2
index c94e9c1a..c083a214 100644
--- a/roles/network/templates/resolved.conf.j2
+++ b/roles/network/templates/resolved.conf.j2
@@ -3,6 +3,8 @@ DNS=9.9.9.9 2620:fe::fe#quad9.net
FallbackDNS=1.1.1.1 2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8 2001:4860:4860::8888#dns.google
DNSSEC=yes
DNSOverTLS=yes
+# use interface-specific DNS when available but fall back to global (required for VPN DNS to work)
+Domains=~.
# Enable multicast DNS for .local domain resolution (replaces avahi functionality)
MulticastDNS=yes