selectel_domains_record_v1
selectel_domains_record_v1
к сведению
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
осторожно
This resource is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more infomation about DNS Hosting (actual), see the official Selectel documentation.
To create records in DNS Hosting (actual), use the selectel_domains_rrset_v2 resource.
Creates and manages a record in DNS Hosting (legacy) using public API v1. For more information about records, see the official Selectel documentation.
Example usage
A Record
resource "selectel_domains_record_v1" "a_record_1" {
domain_id = selectel_domains_domain_v1.domain_1.id
name = "example.com"
type = "A"
content = "127.0.0.1"
ttl = 60
}
AAAA Record
resource "selectel_domains_record_v1" "aaaa_record_1" {
domain_id = selectel_domains_domain_v1.domain_1.id
name = "example.com"
type = "AAAA"
content = "2400:cb00:2049:1::a29f:1804"
ttl = 60
}
TXT Record
resource "selectel_domains_record_v1" "txt_record_1" {
domain_id = selectel_domains_domain_v1.domain_1.id
name = "example.com"
type = "TXT"
content = "hello, world!"
ttl = 60
}
CNAME Record
resource "selectel_domains_record_v1" "cname_record_1" {
domain_id = selectel_domains_domain_v1.domain_1.id
name = "example.com"
type = "CNAME"
content = "origin.com"
ttl = 60
}