Get DNS Policy Details
unifi_get_dns_policyRetrieve one local DNS record or forward-domain policy by ID, returning its domain, record type, and enabled state for DNS record management.
Instructions
Get one local DNS record / forward-domain policy by ID: domain, record type (A/AAAA/CNAME/MX/SRV/TXT/FORWARD_DOMAIN), and enabled state. This is local DNS record management, not content filtering. 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>"
},
"name": "unifi_get_dns_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| responseFormat | No | 'markdown' for a compact human-readable summary (default), 'json' for full raw API data | markdown |