---
title: "Get the latest DNS record scan result for a DNS Zone"
method: GET
path: "/dnszone/{zoneId}/records/scan"
tags: ["DNS Zone"]
---

# Get the latest DNS record scan result for a DNS Zone

`GET /dnszone/{zoneId}/records/scan`

## Path parameters

- `zoneId` integer, required

## Response `200`

Latest DNS record scan job details

- DnsZoneRecordScanJobResponse
  - `JobId` string, guid
  - `ZoneId` integer, nullable
  - `Domain` string, nullable
  - `AccountId` string, nullable
  - `Status` 0 | 1 | 2 | 3 — 0 = Pending 1 = InProgress 2 = Completed 3 = Failed
  - `CreatedAt` string, date-time
  - `CompletedAt` string, date-time, nullable
  - `Records` DnsZoneDiscoveredRecordModel[], nullable
    - `Name` string, nullable — Record name relative to the zone. '@' represents apex.
    - `Type` 0 | 1 | 2 | 3 | 4 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 — 0 = A 1 = AAAA 2 = CNAME 3 = TXT 4 = MX 8 = SRV 9 = CAA 10 = PTR 12 = NS 13 = Svcb 14 = HTTPS 15 = TLSA 16 = SOA
    - `Ttl` integer, nullable
    - `Value` string, nullable
    - `Priority` integer, nullable
    - `Weight` integer, nullable
    - `Port` integer, nullable
    - `IsProxied` boolean
  - `Error` string, nullable

## Other responses

- `401` — The request authorization failed
- `404` — No scan found or DNS Zone not found

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
