2026.8.25.4

Overview

Deploys an NS (Name Server) record for managing delegation to a sub-level DNS zone. This is useful for splitting management across different DNS zones or delegating subdomains.

Name ns
Tag 2026.8.25.4
FullName br:bicepacrdevwcom.azurecr.io/bicep/modules/dns/zones/ns:2026.8.25.4
Last updated 2026-08-25 10:38:08:+00:00
Created 2026-08-25 10:38:08:+00:00
Digest sha256:5e82c954a466057c7d60bbc679ccb65740ffcbddaac622952224b6c9251b3818

Parameters

Name Type Required Description
nameServers array Yes The array of name server DNS names to be added to the NS record set (e.g., ns1.example.com., ns2.example.com.).
subDnsZoneName string Yes The name of the subdomain to be created within the parent DNS zone (e.g., "subzone").
primaryDnsZoneName string Yes The resource name of the primary DNS zone in which the NS record will be created.
ttl int No
3600
The time-to-live (TTL) value for the records in the NS record set, in seconds. Defaults to 3600 seconds (1 hour).

Outputs

Name Type Description

Example

@description('The target environment.')
param env string

@description('The deployment version.')
param version string = '1.0.0.0'

@description('The array of name server DNS names to be added to the NS record set (e.g., ns1.example.com., ns2.example.com.).')
param nameServers array

@description('The name of the subdomain to be created within the parent DNS zone (e.g., "subzone").')
param subDnsZoneName string

@description('The resource name of the primary DNS zone in which the NS record will be created.')
param primaryDnsZoneName string


module ns 'br:bicepacrdevwcom.azurecr.io/bicep/modules/dns/zones/ns:2026.8.25.4' = {
    name: 'ns${env}${version}'
    params: {
      nameServers: nameServers
      subDnsZoneName: subDnsZoneName
      primaryDnsZoneName: primaryDnsZoneName
    }
}