---
title: "Get DNS snapshot"
method: GET
path: "/api/dns/v1/snapshots/{domain}/{snapshotId}"
tags: ["DNS: Snapshot"]
---

# Get DNS snapshot

`GET /api/dns/v1/snapshots/{domain}/{snapshotId}`

Retrieve particular DNS snapshot with contents of DNS zone records.

Use this endpoint to view historical DNS configurations for domains.

## Path parameters

- `domain` string, required
- `snapshotId` integer, required

## Response `200`

Success response

- DNSV1SnapshotSnapshotWithContentResource
  - `id` integer — Snapshot ID
  - `reason` string — Reason of the update
  - `snapshot` DNSV1ZoneRecordResource[] — Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)
    - `name` string — Name of the record (use `@` for wildcard name)
    - `records` DNSV1ZoneNameRecordResource[] — Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource)
      - `content` string — Content of the name record
      - `is_disabled` boolean — Flag to mark name record as disabled
    - `ttl` integer — TTL (Time-To-Live) of the record
    - `type` 'A' | 'AAAA' | 'CNAME' | 'ALIAS' | 'MX' | 'TXT' | 'NS' | 'SOA' | 'SRV' | 'CAA' — Type of the record
  - `created_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/fcb2ecfdfabd/schema)
