terraform/website/source/docs/providers/ns1/r/zone.html.markdown

828 B

layout page_title sidebar_current description
ns1 NS1: ns1_zone docs-ns1-resource-zone Provides a NS1 Zone resource.

ns1_zone

Provides a NS1 DNS Zone resource. This can be used to create, modify, and delete zones.

Example Usage

# Create a new DNS zone
resource "ns1_zone" "example" {
  zone = "terraform.example.io"
  ttl  = 600
}

Argument Reference

The following arguments are supported:

  • zone - (Required) The domain name of the zone.
  • link - (Optional) The target zone(domain name) to link to.
  • ttl - (Optional) The SOA TTL.
  • refresh - (Optional) The SOA Refresh.
  • retry - (Optional) The SOA Retry.
  • expiry - (Optional) The SOA Expiry.
  • nx_ttl - (Optional) The SOA NX TTL.
  • primary - (Optional) The primary zones' ip. This makes the zone a secondary.