---
title: "Get all dns record"
method: GET
path: "/api/v1/zones/{zone}/dns-records"
tags: ["Dns Record"]
---

# Get all dns record

`GET /api/v1/zones/{zone}/dns-records`

Get all Dns Records on this zone

## Path parameters

- `zone` string, required

## Response `200`

Successful operation

- AllDnsRecordResponse
  - `status` string — success
  - `data` DnsRecordId[]
    - `id` string — The id of dns record which need in PUT, DELETE and GET method
    - `name` string — The name of dns record, "@" for zone name(root level), "*" for wild card and any valid value with RFC 1123
    - `type` string — The type of dns record, valid values: [A, AAAA, TXT, CNAME, ALIAS, MX, SRV, CAA]
    - `ttl` number — The ttl of dns record, is not required, valid values: [120, 180, 300, 600, 900, 1800, 3600, 7200, 18000, 43200, 86400, 172800, 432000]
    - `contents` object[] — Array of content of dns record, change base on type of dns record

## Other responses

- `400` — Bad request
- `401` — Missing authentication
- `404` — Zone Not Found

---

[API](https://skmtc.net/liara-cloud/apis/dns.md) · [All operations](https://skmtc.net/liara-cloud/apis/dns/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/liara-cloud/dns/versions/85a963889e53/schema)
