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