diff --git a/data/zones/eh22.intern.zone b/data/zones/eh22.intern.zone index 0aefffb..68b1e62 100644 --- a/data/zones/eh22.intern.zone +++ b/data/zones/eh22.intern.zone @@ -1,7 +1,6 @@ $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. -jool 0 IN A 94.45.254.4 auth-dns.noc 0 IN A 94.45.254.3 grafana.noc 0 IN CNAME monitoring.noc loki.noc 0 IN CNAME monitoring.noc diff --git a/systems/monitoring.noc.eh22.intern/system.nix b/systems/monitoring.noc.eh22.intern/system.nix index 8cbc19b..174fec5 100644 --- a/systems/monitoring.noc.eh22.intern/system.nix +++ b/systems/monitoring.noc.eh22.intern/system.nix @@ -41,7 +41,17 @@ networking.firewall.allowedTCPPorts = [ 80 ]; networking.usePredictableInterfaceNames = false; - + networking = { + interfaces.ens18 = { + ipv4.addresses = [ + { + address = "94.45.254.4"; + prefixLength = 25; + } + ]; + }; + defaultGateway = "94.45.254.1"; + }; services.nginx = { enable = true; recommendedProxySettings = true; diff --git a/systems/resolv-dns.noc.eh22.intern/system.nix b/systems/resolv-dns.noc.eh22.intern/system.nix index 10b8d1e..e9ef492 100644 --- a/systems/resolv-dns.noc.eh22.intern/system.nix +++ b/systems/resolv-dns.noc.eh22.intern/system.nix @@ -23,6 +23,18 @@ in allowedTCPPorts = [ 53 ]; allowedUDPPorts = [ 53 ]; }; + networking = { + interfaces.ens18 = { + ipv4.addresses = [ + { + address = "94.45.254.6"; + prefixLength = 25; + } + ]; + }; + defaultGateway = "94.45.254.1"; + }; + environment.etc."resolv.conf".text = '' search noc.eh22.intern eh22.intern nameserver 94.45.254.2