summaryrefslogtreecommitdiffstats
path: root/roles/network
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
commitb8be9cf4e3203490f73835c04c9b97814a61a3d6 (patch)
tree96bb58b08b54997669e6a9c415a53a7f4d1bd277 /roles/network
parent5e80f0bc555ffbe7203d0ab7dac0e759e0f3a217 (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')
-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