diff --git a/ahoskingit/terraform/dns_ahosking.tf b/ahoskingit/terraform/dns_ahosking.tf index 29c4d69..f42ac39 100644 --- a/ahoskingit/terraform/dns_ahosking.tf +++ b/ahoskingit/terraform/dns_ahosking.tf @@ -45,11 +45,11 @@ resource "cloudflare_record" "ahosking_home" { resource "cloudflare_record" "ahosking_code" { zone_id = cloudflare_zone.ahosking_com.id - name = "code.ahosking.com" + name = "code" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } resource "cloudflare_record" "ahosking_ombi" { @@ -57,8 +57,8 @@ resource "cloudflare_record" "ahosking_ombi" { name = "ombi.ahosking.com" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } resource "cloudflare_record" "ahosking_radarr" { @@ -66,8 +66,8 @@ resource "cloudflare_record" "ahosking_radarr" { name = "radarr.ahosking.com" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } # email MX value for DNS