From 488722aaffdf4d675a359e2459cd2c28655ac32b Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 20 Oct 2023 16:54:33 -0700 Subject: [PATCH] Creating mail.shockrah.xyz dns records --- infra/dns/shockrah-xyz.tf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/infra/dns/shockrah-xyz.tf b/infra/dns/shockrah-xyz.tf index bc93099..9d0a835 100644 --- a/infra/dns/shockrah-xyz.tf +++ b/infra/dns/shockrah-xyz.tf @@ -35,7 +35,15 @@ locals { records = [ "v=spf1 include:_mailcust.gandi.net ?all" ] }, { name = "www.shockrah.xyz", records = [ var.alpha.dns ] }, - { name = "resume.shockrah.xyz", records = [ var.alpha.dns ] } + { name = "resume.shockrah.xyz", records = [ var.alpha.dns ] }, + # Mail stuff + { name = "mail.shockrah.xyz", type = "A", records = [ "45.76.78.158" ] }, + { name = "box.mail.shockrah.xyz", type = "A", records = [ "45.76.78.158" ] }, + { name = "158.78.76.45.in-addr.arpa", type = "PTR", records = [ "mail.shockrah.xyz" ] }, + { name = "8.6.8.2.e.9.e.f.f.f.4.0.0.0.4.5.1.d.f.3.1.0.0.6.0.f.9.1.1.0.0.2.ip6.arpa", type = "PTR", records = [ "mail.shockrah.xyz" ] }, + # glue records + { name = "ns1.mail.shockrah.xyz", type = "A", records = [ "45.76.78.158" ] }, + { name = "ns2.mail.shockrah.xyz", type = "A", records = [ "45.76.78.158" ] }, ] }