manage_dns_record
Manage existing DNS records: update, delete, list, or get records by name, zone, and type. Perform smart lookups without record IDs and control operations with dry-run previews.
Instructions
Update, delete, list, or get existing DNS records. Supports smart lookup by name+zone+type. USE THIS for record lifecycle after creation. For creating new records use provision_dns() (or call this with action="create" — it routes there automatically and explains why). For zone management use manage_dns_zone().
Args: action: Operation to perform on the record record_id: DNS record ID (optional — can look up by name+zone+type) zone: DNS zone FQDN for filtering/lookup view: Optional DNS view name or ID. Required when a zone exists in multiple views (e.g., "default", "Azure.private-2") record_type: Record type filter — "A", "AAAA", "CNAME", "MX", "TXT", "PTR", "SRV", "NS" name: Record name for lookup (e.g., "www" or "www.example.com") rdata: New rdata for update (e.g., {"address": "10.0.0.1"} for A record) ttl: New TTL for update comment: New comment for update dry_run: If True (default), delete shows record details only. Set False to execute. limit: Max records for list (default: 50)
Returns: Record operation result
Examples: - manage_dns_record(action="list", zone="example.com") → all records in zone - manage_dns_record(action="list", zone="example.com", record_type="A") → A records only - manage_dns_record(action="get", record_id="dns/record/abc123") - manage_dns_record(action="update", record_id="dns/record/abc123", rdata={"address": "10.0.0.2"}) - manage_dns_record(action="delete", name="old-host", zone="example.com", record_type="A", dry_run=False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| name | No | ||
| view | No | ||
| zone | No | ||
| limit | No | ||
| rdata | No | ||
| action | Yes | ||
| comment | No | ||
| dry_run | No | ||
| record_id | No | ||
| record_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||