powerdns_record
Provides a PowerDNS record resource.
Example Usage
Note that PowerDNS internally lowercases certain records (e.g. CNAME and AAAA), which can lead to resources being marked for a change in every singe plan.
For the v1 API (PowerDNS version 4):
# Add a record to the zone
resource "powerdns_record" "foobar" {
zone = "example.com."
name = "www.example.com"
type = "A"
ttl = 300
records = ["192.168.0.11"]
}
For the legacy API (PowerDNS version 3.4):
# Add a record to the zone
resource "powerdns_record" "foobar" {
zone = "example.com"
name = "www.example.com"
type = "A"
ttl = 300
records = ["192.168.0.11"]
}
Argument Reference
The following arguments are supported:
zone
- (Required) The name of zone to contain this record.name
- (Required) The name of the record.type
- (Required) The record type.ttl
- (Required) The TTL of the record.records
- (Required) A string list of records.
See the source of this document at Terraform.io