mirror of
https://codeberg.org/muon/home.git
synced 2026-07-03 23:49:35 +00:00
Add wildcard dns
This commit is contained in:
parent
6c344e061f
commit
da8564b3a6
3 changed files with 39 additions and 16 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue