---
layout: "fastly"
page_title: "Fastly: fastly_dns_zones"
sidebar_current: "docs-fastly-datasource-fastly_dns_zones"
description: |-
  Get a list of Fastly DNS Zones.
---

# fastly_dns_zones

Use this data source to get a list of Fastly DNS Zones.

## Example Usage

```terraform
data "fastly_dns_zones" "example" {}

output "fastly_dns_zones_all" {
  value = data.fastly_dns_zones.example.zones
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `total` (Number) The total number of DNS zones returned.

### Read-Only

- `id` (String) The ID of this resource.
- `zones` (Set of Object) A list of DNS zones. (see [below for nested schema](#nestedatt--zones))

<a id="nestedatt--zones"></a>
### Nested Schema for `zones`

Read-Only:

- `description` (String)
- `id` (String)
- `name` (String)
