unifi_update_dns_policy
Update fields of a UniFi DNS policy by ID or domain, preview changes unless confirm is true, and delete/recreate to change record type.
Instructions
Change fields of a DNS policy (found by id or domain); the tool reads it, merges and PUTs the whole record. Its type can't change: delete and recreate. Always needs confirm: true; without it the tool previews the changed fields.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dnsPolicy": "<dnsPolicy>"
},
"name": "unifi_update_dns_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | SRV_RECORD: the port | |
| site | No | Site name, id or reference; optional while the console has a single site | |
| text | No | TXT_RECORD: the text | |
| domain | No | The domain the record is for | |
| weight | No | SRV_RECORD: the weight | |
| confirm | No | Must be true to carry out a guarded change; without it the tool only previews it | |
| enabled | No | Whether the record is served | |
| service | No | SRV_RECORD: the service | |
| priority | No | MX/SRV_RECORD: the priority | |
| protocol | No | SRV_RECORD: the protocol | |
| dnsPolicy | Yes | DNS policy id, or its domain | |
| ipAddress | No | FORWARD_DOMAIN: the DNS server to forward to | |
| ttlSeconds | No | Time to live (A, AAAA, CNAME) | |
| ipv4Address | No | A_RECORD: the IPv4 address | |
| ipv6Address | No | AAAA_RECORD: the IPv6 address | |
| serverDomain | No | SRV_RECORD: the server | |
| targetDomain | No | CNAME_RECORD: the target | |
| mailServerDomain | No | MX_RECORD: the mail server |