rico0: dns shenanigans

This commit is contained in:
Adithya 2024-12-08 16:14:03 +05:30
parent 8ec661c300
commit 9361264119
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 3 additions and 9 deletions

View file

@ -41,6 +41,7 @@
networkConfig = {
DHCP = "yes";
IPv4Forwarding = "yes";
Domains = [ "~." ];
};
dhcpV4Config = {
UseDomains = true;
@ -57,17 +58,9 @@
};
};
services.resolved = {
enable = true;
domains = [ "~." ];
fallbackDns = [ ];
};
services.resolved.enable = true;
networking = {
useDHCP = lib.mkDefault false;
nameservers = [
"10.10.10.1"
];
useNetworkd = true;
};
}

View file

@ -37,6 +37,7 @@ let wireguard-peers = import ../../shared/wireguard-peers.nix { }; in {
};
networkConfig = {
DNS = "10.10.10.1";
Domains = [ "labs.adtya.xyz" ];
Address = [
"${config.nodeconfig.facts.wireguard-ip}/24"
];