System-managed zones, for example,
<network_ID>.compute.internal., are read-only and cannot be modified or deleted.Prerequisites
- Web console
- CLI
Make sure you are in a group that has at least the
editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.Creating DNS zones
If you want to set a name for the zone or configure the negative caching time-to-live (TTL), use a different interface. The web console doesn’t support these settings.
- Web console
- CLI
- In the sidebar, go to Networking → Virtual Networks.
- Click Actions → Create DNS zone.
- In the window that opens, enter a fully qualified domain name (FQDN) that ends with a dot (
.), for example,my.example.. Single-label names, such asexample., and reserved names, such asconsole.nebius., aren’t allowed. Learn more in Zone domain name restrictions. - Select the network to attach the DNS zone to.
- Click Create DNS zone.
Updating DNS zones
You cannot update DNS zones in the web console. To update a custom DNS zone, use a different interface.
-
Get the ID of the zone that you want to update:
Find the zone that you want to update. The output contains the zone ID in the
.metadata.idparameter. -
Run the following command:
Specify the zone ID you got in the previous step as
<DNS_zone_ID>. In the command, you can specify the following parameters to update them:--name(optional): Name of the zone.--labels(optional): Replace all labels with the specified labels, in thekey=valueformat.--labels-add(optional): Add labels, in thekey=valueformat, without replacing the existing labels.--labels-remove(optional): Remove existing labels by key.--soa-spec-negative-ttl(optional): How long DNS resolvers can cache a “record not found” response for this zone, in seconds. Values below5are ignored, and the service default of900is used instead.--resource-version(optional): Current version of the zone. Use themetadata.resource_versionvalue returned when you create the zone or when you get its ID and details if you want to update only the current version that you last checked. If the zone changed and has a different version, the command fails.
Deleting DNS zones
You cannot delete system-managed DNS zones. To delete a custom DNS zone, first delete all records except the defaultNS @ and SOA @ records.
- Web console
- CLI
- In the sidebar, go to Networking → Virtual Networks.
- On the DNS tab, find the zone and click → Delete.
- Confirm the deletion.