Update DNS Record / Policy
unifi_update_dns_policyReplace a local DNS record or forward-domain policy with a full update: fetch the current policy, modify its config, and write it back by ID.
Instructions
Replace a local DNS record / forward-domain policy (full PUT). Fetch the current object via unifi_get_dns_policy, modify, and pass as 'config'. IDs come from unifi_list_dns_policies.
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": {
"dnsPolicyId": "<dnsPolicyId>",
"config": "<config>"
},
"name": "unifi_update_dns_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Full DNS record/policy object to write (fetch current via unifi_get_dns_policy, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out. | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| dnsPolicyId | Yes | DNS policy ID (UUID from unifi_list_dns_policies) |