alicloud_dns

Provides a DNS resource.

Example Usage

# Add a new Domain.
resource "alicloud_dns" "dns" {
  name = "starmove.com"                      
  group_id = "85ab8713-4a30-4de4-9d20-155ff830f651" 
}

Argument Reference

The following arguments are supported:

  • name - (Required) Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
  • group_id - (Optional) Id of the group in which the domain will add. If not supplied, then use default group.

Attributes Reference

The following attributes are exported:

  • id - The domain id.
  • name - The domain name.
  • group_id - The group id of domain.
  • dns_server - A list of the dns server name.

Import

DNS can be imported using the id or domain name, e.g.

$ terraform import alicloud_dns.example "aliyun.com"

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/dns.html