update_dns_record
Modify a DNS record in Cloudflare by updating its type, name, content, TTL, priority, or proxied status using the specified record ID.
Instructions
Update an existing DNS record
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | No | DNS record content | |
name | No | DNS record name | |
priority | No | Priority (for MX records) | |
proxied | No | Whether the record should be proxied through Cloudflare | |
recordId | Yes | The DNS record ID to update | |
ttl | No | Time to live (TTL) in seconds | |
type | No | DNS record type |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "DNS record content",
"type": "string"
},
"name": {
"description": "DNS record name",
"type": "string"
},
"priority": {
"description": "Priority (for MX records)",
"type": "number"
},
"proxied": {
"description": "Whether the record should be proxied through Cloudflare",
"type": "boolean"
},
"recordId": {
"description": "The DNS record ID to update",
"type": "string"
},
"ttl": {
"description": "Time to live (TTL) in seconds",
"minimum": 1,
"type": "number"
},
"type": {
"description": "DNS record type",
"enum": [
"A",
"AAAA",
"CNAME",
"MX",
"TXT",
"NS",
"SRV",
"CAA",
"PTR"
],
"type": "string"
}
},
"required": [
"recordId"
],
"type": "object"
}