Skip to main content

nameshield_record

Learn how to manage a DNS record

Example Usage

# Manage DNS record example
resource "nameshield_record" "example" {
zone = "nameshield.net"
name = "terraform"
type = "TXT"
data = "\"test\""
ttl = 3600
append_if_rrset_exists = true
}

Schema

Required

  • data (String) Data
  • name (String) Name
  • type (String) Type
  • zone (String) Zone name

Optional

  • append_if_rrset_exists (Boolean) Append the record to RRSET if other records already exists
  • ttl (Number) TTL (Time To Live)

Read-Only

  • id (Number) Identifier

Import

Import is supported using the following syntax:

# Import DNS record example
terraform import nameshield_record.example nameshield.net,,A,81.92.80.11