diff --git a/terraform/casey_vps.tf b/terraform/casey_vps.tf index 47082b4..24714ad 100644 --- a/terraform/casey_vps.tf +++ b/terraform/casey_vps.tf @@ -79,3 +79,8 @@ resource "linode_rdns" "casey_reverse_ipv4" { address = linode_instance.casey.ip_address rdns = "casey.sys.theorangeone.net" } + +resource "linode_rdns" "casey_reverse_ipv6" { + address = split("/", linode_instance.casey.ipv6)[0] + rdns = "casey.sys.theorangeone.net" +} diff --git a/terraform/grimes_vps.tf b/terraform/grimes_vps.tf index 73b8a17..c89ccca 100644 --- a/terraform/grimes_vps.tf +++ b/terraform/grimes_vps.tf @@ -21,3 +21,9 @@ resource "vultr_reverse_ipv4" "grimes_reverse_ipv4" { ip = vultr_instance.grimes.main_ip reverse = "grimes.sys.theorangeone.net" } + +resource "vultr_reverse_ipv6" "grimes_reverse_ipv6" { + instance_id = vultr_instance.grimes.id + ip = vultr_instance.grimes.v6_main_ip + reverse = "grimes.sys.theorangeone.net" +} diff --git a/terraform/sys_domains.tf b/terraform/sys_domains.tf index 9fef622..a2db87f 100644 --- a/terraform/sys_domains.tf +++ b/terraform/sys_domains.tf @@ -21,3 +21,27 @@ resource "cloudflare_record" "sys_domain_grimes" { type = "A" ttl = 1 } + +resource "cloudflare_record" "sys_domain_casey_v6" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "casey.sys" + value = split("/", linode_instance.casey.ipv6)[0] + type = "AAAA" + ttl = 1 +} + +resource "cloudflare_record" "sys_domain_walker_v6" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "walker.sys" + value = vultr_instance.walker.v6_main_ip + type = "AAAA" + ttl = 1 +} + +resource "cloudflare_record" "sys_domain_grimes_v6" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "grimes.sys" + value = vultr_instance.grimes.v6_main_ip + type = "AAAA" + ttl = 1 +} diff --git a/terraform/walker_vps.tf b/terraform/walker_vps.tf index cf03d25..2dc8116 100644 --- a/terraform/walker_vps.tf +++ b/terraform/walker_vps.tf @@ -20,3 +20,9 @@ resource "vultr_reverse_ipv4" "walker_reverse_ipv4" { ip = vultr_instance.walker.main_ip reverse = "walker.sys.theorangeone.net" } + +resource "vultr_reverse_ipv6" "walker_reverse_ipv6" { + instance_id = vultr_instance.walker.id + ip = vultr_instance.walker.v6_main_ip + reverse = "walker.sys.theorangeone.net" +}