DNS Zone should have name servers configured

High Azure General dnszones-dns-zone-name-servers

Applies to

  • Microsoft.Network/dnsZones

What CGPulse checks

A resource passes this rule when nameServers must be set true. Anything else is reported as a finding with the evaluated property value attached as evidence.

How to fix it

Configure name servers to enable proper domain name resolution. In Azure Portal: DNS Zone > Overview > verify name server records. See: https://learn.microsoft.com/en-us/azure/dns/dns-operations-dnszones-portal

CLI

az network dns zone show --ids "{id}" --query nameServers

Bicep

resource dnsZone 'Microsoft.Network/dnsZones@2023-07-01-preview' = {
  name: '{name}'
  location: 'global'
}

Terraform

resource "azurerm_dns_zone" "{name}" {
  name                = "{name}"
  resource_group_name = "{rg}"
}

Compliance frameworks

Is your environment compliant with this rule?

CGPulse checks it — and 621 others — against your Azure and AWS accounts with read-only access.

Run a free scan

Related Azure rules

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.