1.7 KiB
1.7 KiB
| page_title | subcategory | description |
|---|---|---|
| interwebao_dns_record Resource - Interweb Angola | DNS | One record of the DNS zone of a domain. |
interwebao_dns_record (Resource)
One record of the DNS zone of a domain of your account. The domain needs DNS management on. A copy of the zone is saved before each change (the last 20 are kept).
Example Usage
resource "interwebao_dns_record" "www" {
domain = "example.co.ao"
name = "www"
type = "A"
value = "203.0.113.10"
ttl = 3600
}
resource "interwebao_dns_record" "mail" {
domain = "example.co.ao"
name = "@"
type = "MX"
value = "mail.example.co.ao"
priority = 10
}
Schema
Required
domain(String) Domain of the zone.name(String) Name, such aswww.@is the domain itself.type(String)A,AAAA,CNAME,MX,TXT,NS,SRVorCAA.value(String) Value. SRV:weight port target. CAA:tag value.
Optional
ttl(Number) 60 to 604800 seconds. Default14400.priority(Number) For MX and SRV; the flag for CAA. Default0.
Read-Only
id(String) Record id. It changes when the name, value or priority change; the provider follows it.simulated(Boolean) True when the change was simulated with asandbox_key.
Notes
- A CNAME cannot share its name with other records (
cname_conflict). - Records that decide where the mail of the account email domain goes are refused (
account_email_domain): change them in Meu Interweb. - Changes are limited to 20 per minute and zone reads to 30 per minute, per account.
Import
terraform import interwebao_dns_record.www example.co.ao/a1b2c3d4e5f60718