DNS: clean up a bit, add root level record for future Matrix shenanigans
This commit is contained in:
parent
b55475c12e
commit
82e074881f
|
@ -31,7 +31,7 @@ in
|
||||||
|
|
||||||
# TODO: make less fragile and have actual unique and stable names
|
# TODO: make less fragile and have actual unique and stable names
|
||||||
canonicalName = record: let
|
canonicalName = record: let
|
||||||
name = builtins.replaceStrings ["."] ["_"] record.name;
|
name = builtins.replaceStrings ["." "@"] ["_" "_root_"] record.name;
|
||||||
in
|
in
|
||||||
"forkos_org_${record.type}_${name}";
|
"forkos_org_${record.type}_${name}";
|
||||||
|
|
||||||
|
@ -44,6 +44,9 @@ in
|
||||||
}) records);
|
}) records);
|
||||||
|
|
||||||
in forkosRecords [
|
in forkosRecords [
|
||||||
|
# (record "@" 3600 "A" ["163.172.69.160"])
|
||||||
|
(record "@" 3600 "AAAA" ["2001:bc8:38ee:100:1000::20"])
|
||||||
|
|
||||||
(record "cl" 3600 "A" ["163.172.69.160"])
|
(record "cl" 3600 "A" ["163.172.69.160"])
|
||||||
(record "cl" 3600 "AAAA" ["2001:bc8:38ee:100:1000::10"])
|
(record "cl" 3600 "AAAA" ["2001:bc8:38ee:100:1000::10"])
|
||||||
|
|
||||||
|
@ -58,10 +61,12 @@ in
|
||||||
(record "fodwatch.infra" 3600 "AAAA" ["2001:bc8:38ee:100:1000::30"])
|
(record "fodwatch.infra" 3600 "AAAA" ["2001:bc8:38ee:100:1000::30"])
|
||||||
(record "meta01.infra" 3600 "AAAA" ["2001:bc8:38ee:100:1000::20"])
|
(record "meta01.infra" 3600 "AAAA" ["2001:bc8:38ee:100:1000::20"])
|
||||||
|
|
||||||
(record "grafana" 3600 "CNAME" ["netbox"])
|
|
||||||
(record "hydra" 3600 "CNAME" ["bagel-box.infra"])
|
(record "hydra" 3600 "CNAME" ["bagel-box.infra"])
|
||||||
|
|
||||||
|
(record "grafana" 3600 "CNAME" ["meta01.infra"])
|
||||||
(record "loki" 3600 "CNAME" ["meta01.infra"])
|
(record "loki" 3600 "CNAME" ["meta01.infra"])
|
||||||
(record "mimir" 3600 "CNAME" ["grafana"])
|
(record "mimir" 3600 "CNAME" ["meta01.infra"])
|
||||||
|
(record "matrix" 3600 "CNAME" ["meta01.infra"])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue