From 0caa35fe9a7dbe7628105ddaaef9e6cb8521fc2b Mon Sep 17 00:00:00 2001 From: c6ristian Date: Thu, 17 Apr 2025 16:11:14 +0200 Subject: [PATCH] auth dns --- data/zones/eh22.intern.zone | 8 +++----- systems/auth-dns.noc.eh22.intern.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/data/zones/eh22.intern.zone b/data/zones/eh22.intern.zone index 96e6a3a..0aefffb 100644 --- a/data/zones/eh22.intern.zone +++ b/data/zones/eh22.intern.zone @@ -1,13 +1,11 @@ $ORIGIN eh22.intern. @ 0 IN SOA auth-dns.noc noc.eh22.easterhegg.eu. 1 7200 3600 3600000 60 @ 0 IN NS 10.20.25.3. -cookies 0 IN A 94.45.254.3 jool 0 IN A 94.45.254.4 -auth-dns.noc 0 IN A 94.45.255.3 +auth-dns.noc 0 IN A 94.45.254.3 grafana.noc 0 IN CNAME monitoring.noc loki.noc 0 IN CNAME monitoring.noc mimir.noc 0 IN CNAME monitoring.noc -monitoring.noc 0 IN A 94.45.255.4 +monitoring.noc 0 IN A 94.45.254.4 +resolv-dns 0 IN A 94.45.254.6 proxmox.noc 0 IN A 94.45.255.2 -router.noc 0 IN A 94.45.255.2 -resolv-dns 0 IN A 94.45.254.2 diff --git a/systems/auth-dns.noc.eh22.intern.nix b/systems/auth-dns.noc.eh22.intern.nix index 7bae430..388d3a3 100644 --- a/systems/auth-dns.noc.eh22.intern.nix +++ b/systems/auth-dns.noc.eh22.intern.nix @@ -58,6 +58,18 @@ in allowedUDPPorts = [ 53 ]; }; + networking = { + interfaces.ens18 = { + ipv4.addresses = [ + { + address = "94.45.254.3"; + prefixLength = 25; + } + ]; + }; + defaultGateway = "94.45.254.1"; + }; + # DO NOT CHANGE # this defines the first version of NixOS that was installed on the machine so that programs with non-migratable data files are kept compatible home-manager.users.noc.home.stateVersion = "24.11";