Terraform module to provision RDNS
resources in Hetzner Cloud.
provider "hcloud" {
token = var.hcloud_token
}
module "sv" {
source = "zoro16/server/hcloud"
version = "1.0.0"
create_server = true
server_name = "rdns-server"
}
module "rdns" {
source = "../../"
create_rdns = true
rdns_server_id = module.sv.server_id
rdns_ip_address = module.sv.server_ipv4_address
rdns_dns_ptr = "example.com"
}
No modules.
Name |
Description |
Type |
Default |
Required |
create_rdns |
A boolean to check whether to create a Reverse DNS or not. |
bool |
false |
no |
rdns_dns_ptr |
The DNS address the ip_address should resolve to. |
string |
null |
no |
rdns_floating_ip_id |
The Floating IP the ip_address belongs to. |
number |
null |
no |
rdns_ip_address |
The IP address that should point to dns_ptr. |
string |
null |
no |
rdns_load_balancer_id |
The Load Balancer the ip_address belongs to. |
number |
null |
no |
rdns_primary_ip_id |
The Primary IP the ip_address belongs to. |
number |
null |
no |
rdns_server_id |
(Required) The server the ip_address belongs to. - server_id . Specify only one of server_id, primary_ip_id, floating_ip_id and load_balancer_id. |
number |
null |
no |