layout | page_title | sidebar_current | description |
---|---|---|---|
dyn |
Dyn: dyn_record |
docs-dyn-resource-record |
Provides a Dyn DNS record resource. |
Provides a Dyn DNS record resource.
# Add a record to the domain
resource "dyn_record" "foobar" {
zone = "${var.dyn_zone}"
name = "terraform"
value = "192.168.0.11"
type = "A"
ttl = 3600
}
The following arguments are supported:
name
- (Required) The name of the record.type
- (Required) The type of the record.value
- (Required) The value of the record.zone
- (Required) The DNS zone to add the record to.ttl
- (Optional) The TTL of the record. Default uses the zone default.
The following attributes are exported:
id
- The record ID.fqdn
- The FQDN of the record, built from thename
and thezone
.
Dyn records can be imported using a combination of the type
, zone
, fdqn
, and optionally id
.
$terraform import dyn_record.record {type}/{zone}/{fqdn}[/{id}]