lib/dns: add records for http

This commit is contained in:
Astro 2022-10-22 21:19:10 +02:00
parent 1fb1d9b38c
commit 8fe58d2816
1 changed files with 20 additions and 2 deletions

View File

@ -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;
} ];
} ]
++