Add initial dns configuration

main
mat ess 2022-11-05 22:48:42 -04:00
commit 2da9fb98f4
3 changed files with 40 additions and 0 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# luadns configuration
configuration for personal sites

16
mat.services.lua Normal file
View File

@ -0,0 +1,16 @@
-- mat.services zone configuration
-- _a = "mat.services"
protonmail(_a)
alias(_a, "apex-loadbalancer.netlify.com")
cname("www", "mat-services.netlify.app.")
aaaa("git", "2a09:8280:1::a:4caa")
a("git", "37.16.20.177")
aaaa("stats", "2a09:8280:1::6:6df4")
a("stats", "168.220.83.238")
aaaa("build", "2a09:8280:1::1:8987")
a("build", "137.66.42.72")

21
templates/protonmail.lua Normal file
View File

@ -0,0 +1,21 @@
function protonmail(domain)
-- Configure mail records for protonmail
-- Verification
txt(domain, "protonmail-verification=6e777d2bb348043a8e73b4f405b6b2dc659ff85f")
-- MX records
mx(domain, "mail.protonmail.ch", 10)
mx(domain, "mailsec.protonmail.ch", 20)
-- SPF
txt(domain, "v=spf1 include:_spf.protonmail.ch mx ~all")
-- DKIM
cname("protonmail._domainkey", "protonmail.domainkey.dcwpz6gpldptg5vbdvvdztzgb7klx436m5hho3egx4mwmvh6kwvba.domains.proton.ch.")
cname("protonmail2._domainkey", "protonmail2.domainkey.dcwpz6gpldptg5vbdvvdztzgb7klx436m5hho3egx4mwmvh6kwvba.domains.proton.ch.")
cname("protonmail3._domainkey", "protonmail3.domainkey.dcwpz6gpldptg5vbdvvdztzgb7klx436m5hho3egx4mwmvh6kwvba.domains.proton.ch.")
-- DMARC
txt("_dmarc", "v=DMARC1; p=quarantine")
end