feat(dns01): add nodes subdomains
This commit is contained in:
parent
225ced72c2
commit
a1a4eedd72
1 changed files with 33 additions and 2 deletions
|
@ -3,9 +3,11 @@
|
||||||
with dns.lib.combinators;
|
with dns.lib.combinators;
|
||||||
{
|
{
|
||||||
SOA = {
|
SOA = {
|
||||||
nameServer = "ns1";
|
nameServer = "ns01.beta.dgnum.eu";
|
||||||
adminEmail = "webmaster@dgnum.eu";
|
adminEmail = "dns@dgnum.eu";
|
||||||
serial = 2019030800;
|
serial = 2019030800;
|
||||||
|
retry = 3600;
|
||||||
|
minimum = 300;
|
||||||
};
|
};
|
||||||
|
|
||||||
NS = [
|
NS = [
|
||||||
|
@ -16,7 +18,36 @@ with dns.lib.combinators;
|
||||||
#AAAA = [ "4321:0:1:2:3:4:567:89ab" ];
|
#AAAA = [ "4321:0:1:2:3:4:567:89ab" ];
|
||||||
|
|
||||||
subdomains = {
|
subdomains = {
|
||||||
|
# Hosted services
|
||||||
|
# NOTE: for now manually supplied, in the future automatically filled in
|
||||||
photoprism = host "129.199.146.101" null;
|
photoprism = host "129.199.146.101" null;
|
||||||
immich = host "129.199.146.101" null;
|
immich = host "129.199.146.101" null;
|
||||||
|
|
||||||
|
# Nameservers
|
||||||
|
# TODO: fill this in
|
||||||
|
ns01 = host "" null;
|
||||||
|
|
||||||
|
# *.infra.beta.dgnum.eu
|
||||||
|
infra = {
|
||||||
|
subdomains = mapAttrs' (
|
||||||
|
host:
|
||||||
|
{ site, ... }:
|
||||||
|
# NOTE: Originally "${host}.${site}"
|
||||||
|
# I think it makes sense to ditch the site info in the case of the lab
|
||||||
|
nameValuePair "${host}" (
|
||||||
|
with meta.network.${host}.addresses;
|
||||||
|
{
|
||||||
|
A = ipv4;
|
||||||
|
# FIXME: Enable ipv6 in all VM nodes
|
||||||
|
|
||||||
|
#AAAA = ipv6;
|
||||||
|
subdomains = {
|
||||||
|
v4.A = ipv4;
|
||||||
|
#v6.AAAA = ipv6;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
) meta.nodes;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue