Azure Private DNS Zone
A self-contained Azure Private DNS zone with virtual-network links and optional record sets for private name resolution across VNets and Private Endpoints - VM auto-registration off by default.
Verification
Live-testedReally deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan test superseded by live test
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-06-30 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o azure-private-dns-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/azure-private-dns/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle azure-private-dns-1.0.0.sigstore.json \
azure-private-dns-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "8cacc984c2426ecdf3db828a0b8425485deffb2f803090a2e212f590d8a4b931 azure-private-dns-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "private_dns" {
source = "www.iac-bazaar.com/iac-bazaar/azure-private-dns/azure"
version = "1.0.0"
}Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.
Inputs & outputs
Create a free account to read this module's contract
The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every Free module. This one is Basic, so its contract unlocks when you buy it.
Documentation
azure-private-dns
Azure Private DNS zone with virtual-network links and optional record sets —
private name resolution for VNets, Private Endpoints and split-horizon internal
domains, done right. The module is self-contained: by default it creates its
own resource group and a virtual network, the private DNS zone, the zone⇄VNet
link, and any A/CNAME records you declare. One tofu apply yields a resolvable
private zone; tofu destroy removes everything (including the resource group).
Secure by default: private DNS zones are inherently private (resolvable only from
linked VNets, never the public internet), and VM auto-registration
(registration_enabled) is off unless you opt in per link. Works with
Terraform and OpenTofu (>= 1.6), azurerm provider >= 4.0, < 5.0.
Security notes
- Private DNS zones are not internet-resolvable — there is no public-access flag to harden. Records are visible only to VNets explicitly linked here.
- Keep
registration_enabled = falseunless you need VM auto-registration. Azure permits auto-registration on at most one linked VNet per zone; the module does not stop you from enabling it on several, but the apply will fail. - For Private Endpoint integration, name the zone after the service's privatelink
domain (e.g.
privatelink.blob.core.windows.net) and link the consuming VNets. - The module owns its resource group, so
destroyis clean and leaves nothing behind.
Requirements
| Requirement | Version |
|---|---|
| Terraform / OpenTofu | >= 1.6 |
hashicorp/azurerm | >= 4.0, < 5.0 |
License
Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.
- Usage
- Inputs
- Outputs
Related modules
Azure Public DNS Zone & Records
An Azure public DNS zone plus a map-driven set of record sets - A, AAAA, CNAME, TXT, MX, NS, CAA and SRV - with relative naming, verbatim TXT values, and apex footgun guards.
Akamai Edge DNS Zone
Authoritative Edge DNS zone with full recordset management on Akamai's DDoS-resilient anycast network.
Akamai GTM Failover/Weighted Domain
Global Traffic Management domain with datacenters and failover or weighted-round-robin properties plus liveness tests.
Cloud DNS Zones & Records
Public/private managed zones with record sets, DNSSEC, forwarding and peering configs.
Cloudflare DNS & WAF
Zone DNS records, security settings, and managed WAF rulesets for a Cloudflare zone - provider v5 ready.
DNS Zone & Traffic Steering
Public/private DNS zones with record sets, failover/geo steering policies and health-check probes.