AzureLive-testedattested

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.

terraformAzureazure

Compare DNS & Traffic Management across clouds →

Part of: Azure Production Landing Zone

azure-dns-zonevizier v1.2.0

Verification

Live-tested

Really deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.

Conformance

  • Static validation (fmt · validate · tflint)
  • No applicable security policies for this provider
  • Plan test superseded by live test

Provenance

Functional

  • Live-tested - applied, verified, destroyed

Last verified 2026-06-30 · how we verify

Verify this download

cosign · sha-256

Don'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-dns-zone-1.0.0.sigstore.json \
  https://www.iac-bazaar.com/api/artifacts/azure-dns-zone/signature

# 3. Verify the tarball you downloaded
cosign verify-blob \
  --key cosign.pub \
  --bundle azure-dns-zone-1.0.0.sigstore.json \
  azure-dns-zone-1.0.0.tar.gz
# → Verified OK

# 4. (optional) confirm the checksum too
echo "fe22050a6a0181b944d4e01a253f8b03e4d8ea4bd161ddb522f18a3e471e3ee1  azure-dns-zone-1.0.0.tar.gz" | sha256sum -c

Use it from the registry

terraform · opentofu
module "dns_zone" {
  source  = "www.iac-bazaar.com/iac-bazaar/azure-dns-zone/azure"
  version = "1.0.0"
}

Needs a registry token from /account/tokens. The module itself is free; the account is what identifies you. Full setup: registry docs.

Cite it in your README

badge · attribution

Paste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads live-tested because the record says so, and the link lands on this page.

README.md, GitLab, Gitea
[![IaC Bazaar: live-tested](https://www.iac-bazaar.com/api/artifacts/azure-dns-zone/badge)](https://www.iac-bazaar.com/catalog/azure-dns-zone?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

Terraform module 1.0.0, live-tested on IaC Bazaar: [Azure Public DNS Zone & Records](https://www.iac-bazaar.com/catalog/azure-dns-zone?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

```hcl
module "dns_zone" {
  source  = "www.iac-bazaar.com/iac-bazaar/azure-dns-zone/azure"
  version = "1.0.0"
}
```

Preview:IaC Bazaar: live-tested

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 module in the catalogue. There is no subscription and nothing to buy - the modules are free to download, and they run under Vizier.

Documentation

azure-dns-zone

Azure public DNS zone (azurerm_dns_zone) plus a clean, map-driven set of record sets — A, AAAA, CNAME, TXT, MX, NS, CAA and SRV. Works with Terraform and OpenTofu (>= 1.6), azurerm provider >= 4.0, < 5.0. The module consumes an existing resource group (DNS zones are global, so there is no location to set).

Each record type maps to its own azurerm resource via for_each, so addressing is stable and editing one entry never churns the others. The fiddly Azure-isms are handled or documented for you:

  • Record names are relative to the zone — use "@" (the default) for the apex or a label like "www"; never a full FQDN.
  • TXT values are verbatim — no escaped quoting; Azure handles the 255-char segmentation (this differs from Route 53).
  • CNAME-at-apex and apex-NS overrides are rejected at plan time (DNS forbids the former; Azure manages the latter).

Requirements

RequirementVersion
Terraform / OpenTofu>= 1.6
hashicorp/azurerm>= 4.0, < 5.0

Security notes

  • An azurerm_dns_zone is a public zone — anyone on the internet can query it. For internal/split-horizon names use an Azure private DNS zone instead; there is no encryption knob for public DNS, the meaningful control is public vs private.
  • Publish a CAA record set (caa_records) to restrict which CAs may issue certificates for the domain — a cheap, high-value hardening step.
  • Use TXT records for SPF/DKIM/DMARC to lock down email spoofing.
  • The deploying principal needs the DNS Zone Contributor role (or equivalent) on the resource group to create zones and record sets.

License

Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).

Usage code & full reference need an account

The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.

  • Usage
  • Inputs
  • Outputs

Related modules

Static validatedLive test pending

azure-dns-private-resolver

A resolver is five resources - endpoints, ruleset, rules and VNet links - and the half-built state most sit in resolves Azure names and forwards nothing to on-premises; a ruleset not linked to a VNet applies to nothing; and each endpoint needs its own delegated subnet. All five created, forwarding rules required, VNet links expected (none by name), the inbound address exported.

View module
Live-tested

azure-private-dns

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.

View module
Static validatedLive test pending

civo-dns-zone

A Civo DNS zone with every record in one map, each with the TTL Civo requires per record, and the nameservers exported for the registrar. Civo does not sign zones and has no CAA or NS record types; dnssec_available says so, so a domain that needs DNSSEC is sent elsewhere before it is delegated.

View module
Static validatedLive test pending

do-dns-zone

A DigitalOcean domain and its records. Creating the zone does not delegate it: until the registrar's nameservers point here the zone is correct, complete and serving nobody, which looks exactly like a working zone. The domain's ip_address shortcut, which hides an apex A record from your records map, is deliberately not used, and a CNAME at the apex is refused.

View module
Static validatedLive test pending

tencent-dns-zone

A Tencent Cloud DNSPod zone with every record in one map, all on the default resolution line so every resolver gets the same answer, MX priority carried on the record, and the free-grade nameservers exported for the registrar. DNSSEC is not a resource in the provider; dnssec_available says so.

View module
Static validatedLive test pending

huawei-dns-zone

A Huawei Cloud public DNS zone with the flat record map grouped into the record sets Huawei expects (one per name and type, several values), DNSSEC on with the DS record for the registrar, and the nameservers exported. Private zones bound to a VPC are a different zone type and not this module.

View module