From 8fe58d2816a24bcd31b27556b54011ebcebd01c3 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 22 Oct 2022 21:19:10 +0200 Subject: [PATCH] lib/dns: add records for http --- nix/lib/dns.nix | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/nix/lib/dns.nix b/nix/lib/dns.nix index dee1197..ed5eb78 100644 --- a/nix/lib/dns.nix +++ b/nix/lib/dns.nix @@ -9,6 +9,8 @@ rec { # public servers (slaves) publicNS = [ "ns.c3d2.de" "ns.spaceboyz.net" ]; + publicIPv4 = config.site.hosts.upstream4.interfaces.up4-pppoe.upstream.staticIpv4Address; + dynamicReverseZones = [ "73.20.172.in-addr.arpa" "74.20.172.in-addr.arpa" @@ -166,7 +168,23 @@ rec { in [ { name = "zentralwerk.org"; ns = publicNS; - records = []; + records = [ { + name = "."; + type = "A"; + data = publicIPv4; + } { + name = "www"; + type = "A"; + data = publicIPv4; + } { + name = "."; + type = "AAAA"; + data = config.site.net.serv.hosts6.up4.network-homepage; + } { + name = "www"; + type = "AAAA"; + data = config.site.net.serv.hosts6.up4.network-homepage; + } ]; } { name = "zentralwerk.dn42"; ns = internalNS; @@ -181,7 +199,7 @@ rec { records = [ { name = "upstream4"; type = "A"; - data = "81.201.149.152"; + data = publicIPv4; } ]; } ] ++