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.9.9.2 |
| FullName |
br:bicepacrdevwcom.azurecr.io/bicep/modules/dns/zones/ns:2026.9.9.2 |
| Last updated |
2026-09-09 12:45:55:+00:00 |
| Created |
2026-09-09 12:45:55:+00:00 |
| Digest |
sha256:7bf3207eb489143c70971ecb444f68640024798ed4b8fab5c3ed91631e02eb51 |
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
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.9.9.2' = {
name: 'ns${env}${version}'
params: {
nameServers: nameServers
subDnsZoneName: subDnsZoneName
primaryDnsZoneName: primaryDnsZoneName
}
}