nixos-wiki-infra/terraform/nixos-wiki/dns.tf

19 lines
456 B
Terraform
Raw Normal View History

2023-05-10 21:05:10 +02:00
resource "netlify_dns_zone" "nixos" {
site_id = ""
name = var.netlify_dns_zone
}
resource "netlify_dns_record" "nixos_wiki_a" {
2023-05-11 00:29:15 +02:00
zone_id = netlify_dns_zone.nixos.id
2023-05-10 21:05:10 +02:00
hostname = var.domain
type = "A"
value = hcloud_server.nixos_wiki.ipv4_address
}
resource "netlify_dns_record" "nixos_wiki_aaaa" {
2023-05-11 00:29:15 +02:00
zone_id = netlify_dns_zone.nixos.id
2023-05-10 21:05:10 +02:00
hostname = var.domain
type = "AAAA"
value = hcloud_server.nixos_wiki.ipv6_address
}