Add wildcard dns

This commit is contained in:
muon 2026-03-16 18:20:18 +00:00
parent 6c344e061f
commit da8564b3a6
3 changed files with 39 additions and 16 deletions

View file

@ -100,6 +100,15 @@ in
10.0.0.2 muon
10.0.0.3 muho
10.0.0.4 muop
127.0.0.1 word.local
'';
# Wildcard DNS: *.word.local -> 127.0.0.1 via NetworkManager's built-in dnsmasq
networking.networkmanager.dns = "dnsmasq";
# Force resolv.conf to use local dnsmasq so wildcard DNS is actually queried
networking.resolvconf.useLocalResolver = true;
environment.etc."NetworkManager/dnsmasq.d/word-local.conf".text = ''
address=/.word.local/127.0.0.1
'';
# gateway =