From 5685458fbf0bdb5b67f127d22928abf4d1601c2d Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 5 Nov 2023 14:58:41 +0100 Subject: [PATCH] fix mail dns entry --- terraform/dns/records.tf | 2 +- terraform/dns/variable.tf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/terraform/dns/records.tf b/terraform/dns/records.tf index bb45b81..a6a132e 100644 --- a/terraform/dns/records.tf +++ b/terraform/dns/records.tf @@ -78,7 +78,7 @@ resource "hetznerdns_record" "rootalias" { resource "powerdns_record" "mail" { zone= powerdns_zone.ducampseu.name type= "MX" - name= "mail.${powerdns_zone.ducampseu.name}" + name= "${powerdns_zone.ducampseu.name}" ttl= 1700 records = ["10 ${var.localEndpoint}"] } diff --git a/terraform/dns/variable.tf b/terraform/dns/variable.tf index 265ad00..1cf25bd 100644 --- a/terraform/dns/variable.tf +++ b/terraform/dns/variable.tf @@ -33,7 +33,8 @@ variable cnameList{ "torrent", "vault", "vikunja", - "www" + "www", + "mail" ] }