chore: also disable per link DNS for ipv6 (dhcp, RA) on servers

This commit is contained in:
oddlama 2023-07-06 15:09:33 +02:00
parent 836cd7c6c2
commit e076aca5a0
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 9 additions and 3 deletions

View file

@ -41,7 +41,9 @@ in {
};
"10-wan" = {
DHCP = "yes";
dhcpConfig.UseDNS = false;
dhcpV4Config.UseDNS = false;
dhcpV6Config.UseDNS = false;
ipv6AcceptRAConfig.UseDNS = false;
#address = [
# "192.168.178.2/24"
# "fdee::1/64"

View file

@ -16,7 +16,9 @@ in {
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
dhcpConfig.UseDNS = false;
dhcpV4Config.UseDNS = false;
dhcpV6Config.UseDNS = false;
ipv6AcceptRAConfig.UseDNS = false;
matchConfig.MACAddress = config.repo.secrets.local.networking.interfaces.lan1.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";

View file

@ -174,7 +174,9 @@
"10-${vmCfg.networking.mainLinkName}" = {
matchConfig.MACAddress = mac;
DHCP = "yes";
dhcpConfig.UseDNS = false;
dhcpV4Config.UseDNS = false;
dhcpV6Config.UseDNS = false;
ipv6AcceptRAConfig.UseDNS = false;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;