Use sys domain resource for reverse DNS
This commit is contained in:
parent
8b21c7d64c
commit
6a23d8cab5
2 changed files with 4 additions and 4 deletions
|
@ -77,10 +77,10 @@ resource "linode_firewall" "casey" {
|
||||||
|
|
||||||
resource "linode_rdns" "casey_reverse_ipv4" {
|
resource "linode_rdns" "casey_reverse_ipv4" {
|
||||||
address = linode_instance.casey.ip_address
|
address = linode_instance.casey.ip_address
|
||||||
rdns = "casey.sys.theorangeone.net"
|
rdns = cloudflare_record.sys_domain_casey.hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "linode_rdns" "casey_reverse_ipv6" {
|
resource "linode_rdns" "casey_reverse_ipv6" {
|
||||||
address = split("/", linode_instance.casey.ipv6)[0]
|
address = split("/", linode_instance.casey.ipv6)[0]
|
||||||
rdns = "casey.sys.theorangeone.net"
|
rdns = cloudflare_record.sys_domain_casey.hostname
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,11 @@ resource "vultr_instance" "walker" {
|
||||||
resource "vultr_reverse_ipv4" "walker_reverse_ipv4" {
|
resource "vultr_reverse_ipv4" "walker_reverse_ipv4" {
|
||||||
instance_id = vultr_instance.walker.id
|
instance_id = vultr_instance.walker.id
|
||||||
ip = vultr_instance.walker.main_ip
|
ip = vultr_instance.walker.main_ip
|
||||||
reverse = "walker.sys.theorangeone.net"
|
reverse = cloudflare_record.sys_domain_walker.hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "vultr_reverse_ipv6" "walker_reverse_ipv6" {
|
resource "vultr_reverse_ipv6" "walker_reverse_ipv6" {
|
||||||
instance_id = vultr_instance.walker.id
|
instance_id = vultr_instance.walker.id
|
||||||
ip = vultr_instance.walker.v6_main_ip
|
ip = vultr_instance.walker.v6_main_ip
|
||||||
reverse = "walker.sys.theorangeone.net"
|
reverse = cloudflare_record.sys_domain_walker.hostname
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue