terraform-provider-powerdns icon indicating copy to clipboard operation
terraform-provider-powerdns copied to clipboard

Introducing data source for PTR record generation

Open johannwagner opened this issue 2 years ago • 2 comments

This introduces a data source, which can generate a PTR record on the fly with an ip address as parameter. This fixes #93.

Example:

data "powerdns_ptr" "foo" {
    ip_address = "1.2.3.4"
}

resource "powerdns_record" "foobar" {
  zone    = "in-addr.arpa."
  name    = data.powerdns_ptr.foo.ptr_address
  type    = "PTR"
  ttl     = 300
  records = ["www.example.com."]
}

johannwagner avatar Jul 04 '22 13:07 johannwagner