---
title: "List DNS Policies"
method: GET
path: "/v1/sites/{siteId}/dns/policies"
tags: ["DNS Policies"]
---

# List DNS Policies

`GET /v1/sites/{siteId}/dns/policies`

## Request

- Base URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/network/integration`
- URL: `https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/network/integration/v1/sites/{siteId}/dns/policies`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ubiquiti/apis/unifi-network-api/docs/v1/sites/:siteId/dns/policies/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a paginated list of all DNS policies on a site.

<details>
<summary>Filterable properties (click to expand)</summary>

|Name|Type|Allowed functions|
|-|-|-|
|`type`|`STRING`|`eq` `ne` `in` `notIn`|
|`id`|`UUID`|`eq` `ne` `in` `notIn`|
|`enabled`|`BOOLEAN`|`eq` `ne`|
|`domain`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`ipv4Address`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`ipv6Address`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`targetDomain`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`mailServerDomain`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`text`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`serverDomain`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`ipAddress`|`STRING`|`eq` `ne` `in` `notIn` `like`|
|`ttlSeconds`|`INTEGER`|`eq` `ne` `gt` `ge` `lt` `le` `in` `notIn`|
|`priority`|`INTEGER`|`eq` `ne` `gt` `ge` `lt` `le` `in` `notIn`|
|`service`|`STRING`|`eq` `ne` `in` `notIn`|
|`protocol`|`STRING`|`eq` `ne` `in` `notIn`|
|`port`|`INTEGER`|`eq` `ne` `gt` `ge` `lt` `le` `in` `notIn`|
|`weight`|`INTEGER`|`eq` `ne` `gt` `ge` `lt` `le` `in` `notIn`|
</details>

## Path parameters

- `siteId` string, uuid, required

## Query parameters

- `offset` integer
- `limit` integer
- `filter` string

## Response `200`

OK

- IntegrationDnsPolicyPageDto
  - `offset` integer, required
  - `limit` integer, required
  - `count` integer, required
  - `totalCount` integer, required
  - `data` DNSPolicy[], required
    - `type` string, required
    - `id` string, uuid, required
    - `enabled` boolean, required
    - `metadata` UserDefinedEntityMetadata, required
      - `origin` string, required
    - `domain` string

---

[API](https://skmtc.dev/ubiquiti/apis/unifi-network-api.md) - [All operations](https://skmtc.dev/ubiquiti/apis/unifi-network-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ubiquiti/apis/unifi-network-api/revisions/822d5af98ce5?raw)
