networking: Only use overlay dns for overlay domain

This commit is contained in:
SebastianStork 2026-02-21 22:56:24 +01:00
parent 69658f9c0f
commit 54433591bf
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -126,10 +126,7 @@ in
matchConfig.Name = netCfg.overlay.interface; matchConfig.Name = netCfg.overlay.interface;
address = [ netCfg.overlay.cidr ]; address = [ netCfg.overlay.cidr ];
dns = netCfg.overlay.dnsServers; dns = netCfg.overlay.dnsServers;
domains = [ domains = [ netCfg.overlay.domain ];
netCfg.overlay.domain
"~." # Route all DNS traffic to this interface first
];
}; };
}; };
} }