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.26.3 |
| FullName |
br:bicepacrdevwcom.azurecr.io/bicep/modules/dns/zones/ns:2026.8.26.3 |
| Last updated |
2026-08-26 07:43:01:+00:00 |
| Created |
2026-08-26 07:43:01:+00:00 |
| Digest |
sha256:b72ebac4cf4d0af26ac12fb299fd000687d4efcfcf497a330c9ad283e9d06c4f |
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.8.26.3' = {
name: 'ns${env}${version}'
params: {
nameServers: nameServers
subDnsZoneName: subDnsZoneName
primaryDnsZoneName: primaryDnsZoneName
}
}