Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud DNS
  • Getting started
    • All guides
      • Creating a private DNS zone
      • Creating a public DNS zone
      • Updating a DNS zone
      • Configuring DNS zone access permissions
      • Viewing operations with DNS zones
      • Deleting a DNS zone
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Zones
  3. Updating a DNS zone

Updating a DNS zone

Written by
Yandex Cloud
Updated at May 13, 2025

You can modify a DNS zone after it is created by renaming it or adding a description.

To update a DNS zone:

Management console
CLI
Terraform
API
  1. In the management console, select the folder where you want to update a DNS zone.
  2. Select Cloud DNS.
  3. Click in the row of the zone to update.
  4. In the menu that opens, click Edit.
  5. Edit the zone settings.
  6. Click Save.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

To update a DNS zone:

  1. View a description of the CLI update zone command:

    yc dns zone update --help
    
  2. Change the visibility of the zone in the networks:

    yc dns zone update <zone_name_or_ID> --network-ids=<network_IDs_for_the_zone>,
    

    Where --network-ids refers to the IDs of the networks for the zone.

    Result:

    id: aet29qhara5j********
    folder_id: aoerb349v3h4********
    created_at: "2021-02-21T09:21:03.935Z"
    name: new-zone-name
    zone: staging.
    private_visibility:
      network_ids:
      - c645mh47vsc********
    

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To update a DNS zone created using Terraform:

  1. Open the Terraform configuration file and edit the fragment with the DNS zone description.

    Example DNS zone description in the Terraform configuration
    resource "yandex_vpc_network" "foo" {}
    
    resource "yandex_dns_zone" "zone1" {
      name        = "my-public-zone"
      description = "Test public zone"
    
      labels = {
        label1 = "test-public"
      }
    
      zone = "test.example-public2.com."
    }
    
  2. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  3. Run this command:

    terraform plan
    

    The terminal will display a list of resources with parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  4. Confirm the changes: type yes into the terminal and press Enter.

    You can make sure the DNS zone has been updated in the management console or via the CLI command below:

    yc dns zone get <zone_name>
    

To update a DNS zone, use the update REST API method for the DnsZone resource or the DnsZoneService/Update gRPC API call.

Was the article helpful?

Previous
Creating a public DNS zone
Next
Configuring DNS zone access permissions
© 2025 Direct Cursus Technology L.L.C.