---
title: "exoscale_domain (Data Source)"
description: "Fetch Exoscale DNS https://community.exoscale.com/product/networking/dns/ Domains data.\nCorresponding resource: exoscale_domain ../resources/domain.md."
url: https://community.exoscale.com/reference/terraform/provider/data-sources/domain/
section: reference
last_updated: 2026-09-29
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# exoscale_domain (Data Source)

Fetch Exoscale [DNS](https://community.exoscale.com/product/networking/dns/index.md) Domains data.

Corresponding resource: [exoscale_domain](https://community.exoscale.com/reference/terraform/provider/resources/domain/index.md).

## Example Usage

```terraform
data "exoscale_domain" "my_domain" {
  name = "my.domain"
}

output "my_domain_id" {
  value = data.exoscale_domain.my_domain.id
}
```

Please refer to the [examples](https://github.com/exoscale/terraform-provider-exoscale/tree/master/examples/)
directory for complete configuration examples.


## Schema

### Required

- `name` (String) The DNS domain name to match.

### Optional

- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.



