Add reverse DNS

This commit is contained in:
Jason Rothstein 2022-05-08 13:56:32 -05:00
parent 0b0462745e
commit 35c3b1c0bf
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
resource "linode_rdns" "this_ipv4" {
address = linode_instance.this.ip_address
rdns = "${var.host_name}.${var.domain_name}"
}

View File

@ -0,0 +1,4 @@
resource "linode_rdns" "this_ipv6" {
address = element(split("/", linode_instance.this.ipv6), 0)
rdns = "${var.host_name}.${var.domain_name}"
}