Skip to the content.

DNS

Module: services/dns · Image: nebius-mocker-dns · NEBIUS_MOCKER_SERVICES=dns M1 tier: T2, plus a T3 data plane (a DNS responder) · Endpoint: dns.api.nebius.cloud

Implementation status

Piece Status
nebius.dns.v1.ZoneService: Create, Get (resource_version), GetByName, List (paged), ListByNetwork (paged), Update (reset mask, resource_version), Delete (resource_version) ✅ T2
nebius.dns.v1.RecordService: Create, Get (resource_version), GetByName, List (paged), Update (reset mask, resource_version), Delete (resource_version, force) ✅ T2
Zones bound to a VPC network through peer.Networks (vpc): the network must exist in the zone’s project, and cannot be deleted while a zone is bound ✅
Service-managed SOA @ and NS @ records, status.record_count, status.effective_fqdn / zone_domain_name ✅
Per-type record data validation, duplicates, per-zone and per-name limits, deletion protection, reserved domain names ✅
DNS responder (miekg/dns, UDP and TCP on NEBIUS_MOCKER_DNS_LISTEN, default :4653): authoritative answers, wildcards, NXDOMAIN/NODATA with the SOA ✅ T3
Authorization: rules for every RPC (dns.zones.*, dns.records.*); auditor reads zones but not records ✅
nebius_dns_v1_zone, nebius_dns_v1_record resources and data sources with the official provider ✅ e2e: test/terraform/dns
nebius dns zone / nebius dns record CLI flows from the docs, verified with dig ✅ e2e: test/cli/dns
System-managed <network_ID>.compute.internal. zones with VM FQDNs Not yet
Quota dns.zone.count enforced on zone Create (quotas.md) ✅ contract: test/contract/quotas_areas_test.go

Verified against: nebius/api@4522189, terraform-provider-nebius v0.6.91, gosdk v0.2.100, nebius CLI 0.12.312.

Covered by unit tests (services/dns/{domain,dal,responder}), gosdk contract tests with real DNS queries (test/contract/dns_*), the Terraform e2e suite and the CLI e2e suite (make e2e).

Behavior notes

These follow docs.nebius.com/vpc/dns and the protos. Where neither says what happens, the mock’s choice is marked (mock).

DNS responder

The mock runs an authoritative DNS server for its zones, so names created through the API resolve with ordinary clients. On Nebius, VMs query the network resolver at 169.254.169.2; locally, query the mock instead:

dig @127.0.0.1 -p 4653 www.my.example.

Overview

DNS zones (private, bound to a VPC network; ZoneService.ListByNetwork) and records (relative_name, type, data, ttl, deletion_protection; status.effective_fqdn).

Resource kind Message NID prefix Parent
Zone Zone dnszone project
Record Record dnsrecord zone

Emulation design

Configuration

Variable Default Meaning
NEBIUS_MOCKER_DNS_LISTEN :4653 UDP and TCP address of the DNS responder; off disables it

Terraform

Kind Terraform type Service RPCs called Tier
Resource nebius_dns_v1_record nebius.dns.v1.RecordService Get, GetByName, Create, Update, Delete + OperationService.Get ✅ T2
Resource nebius_dns_v1_zone nebius.dns.v1.ZoneService Get, GetByName, Create, Update, Delete + OperationService.Get ✅ T2
Data source nebius_dns_v1_record nebius.dns.v1.RecordService Get, GetByName ✅ T2
Data source nebius_dns_v1_zone nebius.dns.v1.ZoneService Get, GetByName ✅ T2

Immutable (RequiresReplace) attributes: zone domain_name, vpc.primary_network_id, parent_id; record relative_name, type, parent_id.

API surface

nebius.dns.v1.RecordService

Endpoint: dns.api.nebius.cloud:443 · Proto: nebius/dns/v1/record_service.proto · used by Terraform

RPC Request Response TF
Get GetRecordRequest Record ✅
GetByName common.v1.GetByNameRequest Record ✅
List ListRecordsRequest ListRecordsResponse  
Create CreateRecordRequest common.v1.Operation ✅
Update UpdateRecordRequest common.v1.Operation ✅
Delete DeleteRecordRequest common.v1.Operation ✅

nebius.dns.v1.ZoneService

Endpoint: dns.api.nebius.cloud:443 · Proto: nebius/dns/v1/zone_service.proto · used by Terraform

RPC Request Response TF
Get GetZoneRequest Zone ✅
GetByName common.v1.GetByNameRequest Zone ✅
List ListZonesRequest ListZonesResponse  
ListByNetwork ListZonesByNetworkRequest ListZonesResponse  
Create CreateZoneRequest common.v1.Operation ✅
Update UpdateZoneRequest common.v1.Operation ✅
Delete DeleteZoneRequest common.v1.Operation ✅