Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • dns_zone

In this article:

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for timeouts
  1. Terraform reference
  2. Resources
  3. Cloud Domain Name System (DNS)
  4. Data Sources
  5. dns_zone

yandex_dns_zone (Data Source)

Written by
Yandex Cloud
Updated at September 11, 2025
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for timeouts

Get information about a DNS Zone.

Warning

One of dns_zone_id or name should be specified.

Example usageExample usage

//
// Get information about existing DNS Zone.
//
data "yandex_dns_zone" "foo" {
  dns_zone_id = yandex_dns_zone.zone1.id
}

output "zone" {
  value = data.yandex_dns_zone.foo.zone
}

SchemaSchema

OptionalOptional

  • dns_zone_id (String) The ID of the DNS Zone.
  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • name (String) The resource name.
  • timeouts (Block, Optional) (see below for nested schema)

Read-OnlyRead-Only

  • created_at (String) The creation timestamp of the resource.
  • deletion_protection (Boolean) The true value means that resource is protected from accidental deletion.
  • description (String) The resource description.
  • id (String) The ID of this resource.
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • private_networks (Set of String) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
  • public (Boolean) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
  • zone (String) The DNS name of this zone, e.g. example.com.. Must ends with dot.

Nested Schema for Nested Schema for timeouts

Optional:

  • create (String)
  • delete (String)
  • update (String)

Was the article helpful?

Previous
cloud_desktops_desktop_group
Next
dns_recordset
© 2025 Direct Cursus Technology L.L.C.