> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/api-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/api-reference/networking/zdns/datastructure.md).

# Data Types

## LineInfo

Information on the request source.

Referenced by：DescribePrivateZoneRecords

| Parameter Name | Type   | Description                                                                                                                       |
| -------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------- |
| line           | String | <p>Request source.</p><p>'default' is the default, i.e., Global.</p><p>You can also specify a region ID, such as asia-east-1.</p> |
| city           | String | If the request source is a region, this field is the name of the city to which the region belongs.                                |

## PrivateZone

information on the DNS Zone.

Referenced by：DescribePrivateZones

| Parameter Name | Type                                    | Description                                                        |
| -------------- | --------------------------------------- | ------------------------------------------------------------------ |
| zoneId         | String                                  | DNS Zone ID.                                                       |
| zoneName       | String                                  | DNS Zone (Private authoritative domain).                           |
| proxyPattern   | [ProxyPattern](#proxypattern)           | Whether to enable subdomain recursive resolution proxy.            |
| remark         | String                                  | <p>Note information.</p><p>The length is up to 255 characters.</p> |
| recordCount    | Integer                                 | Number of DNS records.                                             |
| vpcIds         | Array of String                         | List of associated VPC IDs.                                        |
| tags           | [Tags](#tags)                           | Bound tags.                                                        |
| resourceGroup  | [ResourceGroupInfo](#resourcegroupinfo) | Information of the resource group where the DNS Zone is located.   |
| createTime     | String                                  | Creation time of the DNS Zone.                                     |

## PrivateZoneRecord

Information on the DNS record.

Referenced by：DescribePrivateZoneRecords

| Parameter Name | Type                          | Description                                                                                                                           |
| -------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| recordId       | String                        | DNS record ID.                                                                                                                        |
| zoneId         | String                        | DNS Zone ID.                                                                                                                          |
| type           | [RecordType](#recordtype)     | DNS record type.                                                                                                                      |
| recordName     | String                        | Host record.                                                                                                                          |
| value          | String                        | DNS record value.                                                                                                                     |
| weight         | Integer                       | <p>DNS record weight.</p><p>Value range: \[1, 100]</p><p>Default value: 1</p>                                                         |
| ttl            | Integer                       | <p>Domain local cache time.</p><p>Unit: seconds.</p><p>Value range: \[1, 86400]</p><p>Default value: 60</p>                           |
| line           | String                        | <p>The request source.</p><p>'default' is the default, i.e., Global.</p><p>You can also specify a region ID, such as asia-east-1.</p> |
| lineInfo       | [LineInfo](#lineinfo)         | <p>Details of the request source.</p><p>Only exists when the line is a region.</p>                                                    |
| priority       | Integer                       | <p>Priority of MX record.</p><p>The smaller the value, the higher the priority.</p><p>Value range: \[1, 99]</p>                       |
| remark         | String                        | Note information.                                                                                                                     |
| status         | [RecordStatus](#recordstatus) | DNS record state.                                                                                                                     |
| createTime     | String                        | Creation time of the DNS record.                                                                                                      |

## ProxyPattern

Information on optional values for subdomain recursive resolution proxy.

Referenced by：ModifyPrivateZone, DescribePrivateZones, AddPrivateZone

| Value     | Description                                                                                                                                                                                                                                   |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ZONE      | <p>Disable subdomain recursive resolution proxy.</p><p>When resolving a subdomain that does not exist under the current domain, NXDOMAIN is returned directly, indicating that the subdomain does not exist.</p>                              |
| RECURSION | <p>Enable subdomain recursive resolution proxy.</p><p>When resolving a subdomain that does not exist under the current domain, the "recursive" module is queried and the final query result is used to respond to the resolution request.</p> |

## RecordStatus

Information on available values for the state of the DNS record.

Referenced by：DescribePrivateZoneRecords, ModifyPrivateZoneRecordsStatus, AddPrivateZoneRecord

| Value    | Description |
| -------- | ----------- |
| Enabled  | Enable DNS. |
| Disabled | Pause DNS.  |

## RecordType

Information on DNS record type.

Referenced by：DescribePrivateZoneRecords, AddPrivateZoneRecord

| Value | Description                                                                                                                                                                                                                                                                        |
| ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A     | Point the domain to an IP address.                                                                                                                                                                                                                                                 |
| AAAA  | Point the domain to an IPv6 address.                                                                                                                                                                                                                                               |
| CNAME | Point the domain to another domain.                                                                                                                                                                                                                                                |
| MX    | Point the domain to the mail server address.                                                                                                                                                                                                                                       |
| TXT   | Store arbitrary text, commonly used for verification.                                                                                                                                                                                                                              |
| PTR   | <p>Point the IP address to a domain.</p><p>Implement reverse DNS lookup from IP address.</p>                                                                                                                                                                                       |
| SRV   | <p>Record servers that provide specific services.</p><p>The SRV record format is: \[priority] \[weight] \[port] \[destination address], priority, weight, port value range 0-65535, each item must be separated by a space.</p><p>For example: 0 5 5060 sipserver.example.com.</p> |

## ResourceGroupInfo

Information on the resource group, including the name and ID.

Referenced by：DescribePrivateZones

| Parameter Name    | Type   | Description          |
| ----------------- | ------ | -------------------- |
| resourceGroupId   | String | Resource group ID.   |
| resourceGroupName | String | Resource group name. |

## Tag

Information on a tag key-value pair.

Referenced by：DescribePrivateZones, AddPrivateZone

| Parameter Name | Type   | Required | Description                                                              |
| -------------- | ------ | -------- | ------------------------------------------------------------------------ |
| key            | String | Yes      | <p>Tag key.</p><p>The length must be between 1 and 64 characters.</p>    |
| value          | String | No       | <p>Tag values.</p><p>The length must be between 1 and 64 characters.</p> |

## TagAssociation

Information on the tags associated when creating resources.

Referenced by：AddPrivateZone

| Parameter Name | Type                 | Required | Description   |
| -------------- | -------------------- | -------- | ------------- |
| tags           | Array of [Tag](#tag) | Yes      | List of tags. |

## Tags

Information on tags associated with the resources.

Referenced by：DescribePrivateZones

| Parameter Name | Type                 | Description   |
| -------------- | -------------------- | ------------- |
| tags           | Array of [Tag](#tag) | List of tags. |
