DNS_updateDNSRecordsV1
Modify domain DNS configuration by updating or replacing existing records. Choose to overwrite records or append new ones, adjusting TTL values and adding entries as needed.
Instructions
Update DNS records for the selected domain.
Using overwrite = true
will replace existing records with the provided ones.
Otherwise existing records will be updated and new records will be added.
Use this endpoint to modify domain DNS configuration.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
domain | Yes | Domain name | |
overwrite | No | If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created. | |
zone | Yes | zone parameter |
Input Schema (JSON Schema)
{
"properties": {
"domain": {
"description": "Domain name",
"type": "string"
},
"overwrite": {
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.",
"type": "boolean"
},
"zone": {
"description": "zone parameter",
"items": {
"description": "zone parameter",
"properties": {
"name": {
"description": "Name of the record (use `@` for wildcard name)",
"type": "string"
},
"records": {
"description": "Records assigned to the name",
"items": {
"description": "records parameter",
"properties": {
"content": {
"description": "Content of the name record",
"type": "string"
}
},
"required": [
"content"
],
"type": "object"
},
"type": "array"
},
"ttl": {
"description": "TTL (Time-To-Live) of the record",
"type": "integer"
},
"type": {
"description": "Type of the record",
"enum": [
"A",
"AAAA",
"CNAME",
"ALIAS",
"MX",
"TXT",
"NS",
"SOA",
"SRV",
"CAA"
],
"type": "string"
}
},
"required": [
"name",
"records",
"type"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"domain",
"zone"
],
"type": "object"
}