diff --git a/modules/dns/m0/main.tf b/modules/dns/m0/main.tf index ab3649d..9fd8143 100644 --- a/modules/dns/m0/main.tf +++ b/modules/dns/m0/main.tf @@ -8,11 +8,20 @@ resource "azurerm_dns_zone" "root_zone" { resource_group_name = "dns-m0-rg" } +# A record for root +resource "azure_dns_a_record" "root_a" { + name = "@" + resource_group_name = azurerm_resource_group.dns_rg.name + zone_name = azurerm_dns_zone.root_zone.name + ttl = 300 + records = ["76.76.21.21"] +} + # CNAME record for www. resource "azurerm_dns_cname_record" "www_cname" { name = "www" resource_group_name = azurerm_resource_group.dns_rg.name zone_name = azurerm_dns_zone.root_zone.name ttl = 300 - record = azurerm_dns_zone.root_zone.name + record = "cname.vercel-dns.com." }