Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Latest commit

 

History

History
49 lines (36 loc) · 1.06 KB

record.html.markdown

File metadata and controls

49 lines (36 loc) · 1.06 KB
layout page_title sidebar_current description
dyn
Dyn: dyn_record
docs-dyn-resource-record
Provides a Dyn DNS record resource.

dyn_record

Provides a Dyn DNS record resource.

Example Usage

# 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
}

Argument Reference

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.

Attributes Reference

The following attributes are exported:

  • id - The record ID.
  • fqdn - The FQDN of the record, built from the name and the zone.

Import

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}]