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" ] }, ] }