github.com/kwoods/terraform@v0.6.11-0.20160809170336-13497db7138e/website/source/docs/providers/powerdns/r/record.html.markdown (about) 1 --- 2 layout: "powerdns" 3 page_title: "PowerDNS: powerdns_record" 4 sidebar_current: "docs-powerdns-resource-record" 5 description: |- 6 Provides a PowerDNS record resource. 7 --- 8 9 # powerdns\_record 10 11 Provides a PowerDNS record resource. 12 13 ## Example Usage 14 15 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. 16 17 For the v1 API (PowerDNS version 4): 18 ``` 19 # Add a record to the zone 20 resource "powerdns_record" "foobar" { 21 zone = "example.com." 22 name = "www.example.com" 23 type = "A" 24 ttl = 300 25 records = ["192.168.0.11"] 26 } 27 ``` 28 29 For the legacy API (PowerDNS version 3.4): 30 ``` 31 # Add a record to the zone 32 resource "powerdns_record" "foobar" { 33 zone = "example.com" 34 name = "www.example.com" 35 type = "A" 36 ttl = 300 37 records = ["192.168.0.11"] 38 } 39 ``` 40 41 ## Argument Reference 42 43 The following arguments are supported: 44 45 * `zone` - (Required) The name of zone to contain this record. 46 * `name` - (Required) The name of the record. 47 * `type` - (Required) The record type. 48 * `ttl` - (Required) The TTL of the record. 49 * `records` - (Required) A string list of records. 50