From 2632c6d2b08ccf3d0ad2bb786d9c6e3a489c1897 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 10 Feb 2024 10:39:09 +0100 Subject: [PATCH] dns: switch cname to alias --- nomad-job/pdns-auth.nomad | 2 ++ terraform/dns/CnameReverse.tf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nomad-job/pdns-auth.nomad b/nomad-job/pdns-auth.nomad index b153ca9..f1e7a96 100644 --- a/nomad-job/pdns-auth.nomad +++ b/nomad-job/pdns-auth.nomad @@ -73,6 +73,8 @@ gpgsql-user=pdns-auth {{ with secret "secrets/data/database/pdns"}} gpgsql-password={{ .Data.data.pdnsauth }} {{ end }} +resolver=192.168.1.6 +expand-alias=yes include-dir=/etc/powerdns/pdns.d EOH } diff --git a/terraform/dns/CnameReverse.tf b/terraform/dns/CnameReverse.tf index 438961f..8314df0 100644 --- a/terraform/dns/CnameReverse.tf +++ b/terraform/dns/CnameReverse.tf @@ -2,7 +2,7 @@ resource "powerdns_record" "Cname" { for_each = toset(var.cnameList) zone = powerdns_zone.ducampseu.name name = "${each.key}.${powerdns_zone.ducampseu.name}" - type = "CNAME" + type = "ALIAS" ttl = 1700 records = [var.localEndpoint] }