From f00e9236703af1ca3c660a31fdb589e93e3600df Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Fri, 7 Feb 2020 18:29:07 +0000 Subject: [PATCH 1/4] Reorganise the DNS records --- dns-records.tf | 66 +++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/dns-records.tf b/dns-records.tf index 613dd24..affaa5a 100644 --- a/dns-records.tf +++ b/dns-records.tf @@ -2,6 +2,9 @@ locals { zone = "zerowastesgp.fr" dns_records = [ + # -------------------------------------------------- # + # DNS zone configuration + # -------------------------------------------------- # { name = "" type = "NS" @@ -11,14 +14,6 @@ locals { "ns100.ovh.net.", ] }, - { - name = "" - type = "MX" - ttl = 0, - targets = [ - "1 redirect.ovh.net.", - ] - }, # See https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain. { name = "" @@ -31,12 +26,24 @@ locals { "185.199.111.153", ] }, + # https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain. + { + name = "www" + type = "CNAME" + ttl = 0, + targets = [ + "zerowastesgp.github.io.", + ] + }, + # -------------------------------------------------- # + # Email configuration + # -------------------------------------------------- # { name = "" - type = "SPF" - ttl = 600, + type = "MX" + ttl = 0, targets = [ - "\"v=spf1 include:mx.ovh.com ~all\"", + "1 redirect.ovh.net.", ] }, { @@ -56,15 +63,15 @@ locals { ] }, { - name = "_autodiscover._tcp" - type = "SRV" + name = "mail" + type = "CNAME" ttl = 0, targets = [ - "0 0 443 mailconfig.ovh.net.", + "ssl0.ovh.net.", ] }, { - name = "imap" + name = "pop3" type = "CNAME" ttl = 0, targets = [ @@ -72,15 +79,15 @@ locals { ] }, { - name = "_imaps._tcp" - type = "SRV" + name = "imap" + type = "CNAME" ttl = 0, targets = [ - "0 0 993 ssl0.ovh.net.", + "ssl0.ovh.net.", ] }, { - name = "mail" + name = "smtp" type = "CNAME" ttl = 0, targets = [ @@ -88,19 +95,19 @@ locals { ] }, { - name = "pop3" - type = "CNAME" + name = "_autodiscover._tcp" + type = "SRV" ttl = 0, targets = [ - "ssl0.ovh.net.", + "0 0 443 mailconfig.ovh.net.", ] }, { - name = "smtp" - type = "CNAME" + name = "_imaps._tcp" + type = "SRV" ttl = 0, targets = [ - "ssl0.ovh.net.", + "0 0 993 ssl0.ovh.net.", ] }, { @@ -111,13 +118,12 @@ locals { "0 0 465 ssl0.ovh.net.", ] }, - # https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain. { - name = "www" - type = "CNAME" - ttl = 0, + name = "" + type = "SPF" + ttl = 600, targets = [ - "zerowastesgp.github.io.", + "\"v=spf1 include:mx.ovh.com ~all\"", ] }, ] From 45b551c2a667c4f4ce7b4a82b1961d62b353cd0b Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Fri, 7 Feb 2020 18:30:11 +0000 Subject: [PATCH 2/4] Add TXT record for GitHub domain verification --- dns-records.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dns-records.tf b/dns-records.tf index affaa5a..0afaca5 100644 --- a/dns-records.tf +++ b/dns-records.tf @@ -126,6 +126,17 @@ locals { "\"v=spf1 include:mx.ovh.com ~all\"", ] }, + # -------------------------------------------------- # + # Domain verification + # -------------------------------------------------- # + { + name = "_github-challenge-zerowastesgp" + type = "TXT" + ttl = 0, + targets = [ + "\"c50ef36f27\"", + ] + }, ] } From 68f3a18106e1d41682b4efd40df8fbccdd835e3f Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Fri, 7 Feb 2020 18:35:25 +0000 Subject: [PATCH 3/4] Add 0.4.0 to changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56c25d0..dd8671b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## v0.4.0 - Feb 7, 2020 + +### Changes + +* Reorganise the DNS records to improve the visibility +* Add a `TXT` record to get the domain verified by GitHub + ## v0.3.0 - Feb 7, 2020 ### Changes From 7be7fd8ca1cd7c00cabc964a407042a63fb73ad7 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Fri, 7 Feb 2020 18:37:53 +0000 Subject: [PATCH 4/4] Delete the 'examples' folder This Terraform module is not made to be reused so the 'examples' folder is not useful. --- examples/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/.gitkeep diff --git a/examples/.gitkeep b/examples/.gitkeep deleted file mode 100644 index e69de29..0000000