diff --git a/terraform/dns.tf b/terraform/dns.tf index c88117e..9f85fd8 100644 --- a/terraform/dns.tf +++ b/terraform/dns.tf @@ -34,6 +34,14 @@ resource "vultr_dns_record" "sync" { ttl = 300 } +resource "vultr_dns_record" "mc" { + domain = vultr_dns_domain.root.id + name = "mc" + type = "A" + data = module.host_offworld.main_ip + ttl = 300 +} + ###################### # DNS - GitHub Pages # ###################### diff --git a/terraform/modules/vultr-vm/main.tf b/terraform/modules/vultr-vm/main.tf index 5ce23e5..8a18886 100644 --- a/terraform/modules/vultr-vm/main.tf +++ b/terraform/modules/vultr-vm/main.tf @@ -24,8 +24,8 @@ resource "vultr_instance" "service_vm" { resource "vultr_dns_record" "vm_hostname_record" { domain = var.vultr_dns_domain_id - name = local.subdomain - data = vultr_instance.service_vm.main_ip - ttl = 300 - type = "A" + name = local.subdomain + data = vultr_instance.service_vm.main_ip + ttl = 300 + type = "A" }