---
title: "Retrieve DNS domain zone file"
method: GET
path: "/dns-domain/{id}/zone"
tags: ["domain"]
---

# Retrieve DNS domain zone file

`GET /dns-domain/{id}/zone`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dns-domain/{id}/zone`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dns-domain/:id/zone/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Response `200`

200

- object
  - `zone-file` string

## Changes

- **2026-03-16** `e05707a7b346`: 2 info
  - api tag `domain` added
  - api tag `dns` removed
- **2023-06-06** `cf7b08181585`: 1 breaking, 1 info
  - the response's body type changed from `string` to `object` for status `200`
  - added the optional property `zone-file` to the response with the `200` status
- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dns-domain/:id/zone/get.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
