Move vanity nameserver config to template

main
mat ess 2023-07-26 12:51:00 -04:00
parent b7bcdca4ab
commit ead5da6614
2 changed files with 10 additions and 4 deletions

View File

@ -13,7 +13,4 @@ aaaa("stats", "2a09:8280:1::6:6df4")
a("stats", "168.220.83.238")
-- vanity nameservers
aaaa("tom.ns", "2001:67c:25a0::1")
a("tom.ns", "185.142.218.1")
aaaa("dana.ns", "2001:67c:25a0::2")
a("dana.ns", "185.142.218.2")
vanityns("tom", "dana")

View File

@ -19,3 +19,12 @@ function protonmail(domain)
-- DMARC
txt("_dmarc", "v=DMARC1; p=quarantine")
end
function vanityns(ns1, ns2)
-- Configure vanity DNS nameservers
aaaa(concat(ns1, "ns"), "2001:67c:25a0::1")
a(concat(ns1, "ns"), "185.142.218.1")
aaaa(concat(ns2, "ns"), "2001:67c:25a0::2")
a(concat(ns2, "ns"), "185.142.218.2")
end