GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • πŸš€DNSControl
  • Provider

This view

  • Original page
  • New address

GeezerVison is showing docs.dnscontrol.org β€” Azure Private DNS | DNSControl

Configuration

This provider is for the Azure Private DNS Service. This provider can only manage Azure Private DNS zones and will not manage public Azure DNS zones. To use this provider, add an entry to creds.json with TYPE set to AZURE_PRIVATE_DNS along with the API credentials.

The provider supports three authentication methods:

  1. DefaultAzureCredential (Recommended): Simplifies authentication by leveraging Azure's credential chain (e.g., environment variables, managed identities, Azure CLI, etc.).

  2. Client ID and Secret: Provides backward compatibility for users who prefer this method.

  3. OIDC (InteractiveBrowserCredential): Allows interactive login via the browser for specific scenarios.

Example Configurations

DefaultAzureCredential (Recommended)

This method does not require explicit credentials in creds.json and leverages Azure's default authentication chain:

  • Managed Identity (if running in Azure)

  • Environment variables

  • Azure CLI credentials

No additional setup is required in creds.json:

creds.json
{
  "azure_private_dns_main": {
    "TYPE": "AZURE_PRIVATE_DNS",
    "SubscriptionID": "AZURE_PRIVATE_DNS_SUBSCRIPTION_ID",
    "ResourceGroup": "AZURE_PRIVATE_DNS_RESOURCE_GROUP"
  }
}

You can also use environment variables:

Client ID and Secret (Backward Compatibility)

To use the client ID and secret-based authentication:

Example:

You can also use environment variables:

OIDC (Interactive Browser Authentication)

To enable OIDC for interactive login:

You can also use environment variables:

Metadata

This provider does not recognize any special metadata fields unique to Azure Private DNS.

Usage

An example configuration:

Test credentials

If you want to create credentials without learning all about Entra ID (formerly AAD). Here's what I did. You will create an named API key (in this case, called dns-api-test) and give it access to the specific zones it should access. This is probably best for testing. For production use, you should understand Entra ID and set up proper access.

  1. Get a shell

  • Start the Azure Portal: https://portal.azure.com

  • Click the >_ Cloud Shell button at the top.

  • Choose Bash.

  1. Create an API key called dns-api-test

NOTE: You can use the same credential data for AZURE_DNS and AZURE_PRIVATE_DNS but creds.json must have a separate entry for each. All the fields except TYPE will be the same.

  1. Show the zone's acess path:

Use your own Resource Group in --resource-group and change the --name to the DNS zone name you created through the portal.

The /subscriptions/02efc9e4.... output is the path to this zone.

  1. Give your API key access to that zone

For AZURE_DNS the commands are slightly different.

Activation

DNSControl supports three authentication methods: DefaultAzureCredential (recommended), Client credentials Authentication, and OIDC interactive browser login. All methods require permission to list, create and update private zones.

New domains

If a domain does not exist in your Azure account, DNSControl will not automatically add it with the push command. You can do that manually via the control panel.

Caveats

The ResourceGroup is case-insensitive (it is lowercased internally).

Feature Summary

  • Support Level and Type

    • Official Support: βœ…

    • DNS Provider: βœ…

    • Registrar: ❌

  • API-level Features

    • Concurrent fetching: βœ…

    • dual host: ❌

    • create-domains: ❌

    • get-zones: βœ…

    • AUTODNSSEC: ❌

  • Supported Record Types

    • A AAAA CNAME MX PTR SRV TXT

      • Not supported: ALIAS (Azure DNS does not provide a generic ALIAS functionality. Use AZURE_ALIAS instead.)

      • Not supported: AZURE_ALIAS (Azure Private DNS does not support alias records)

      • Not supported: CAA (Azure Private DNS does not support CAA records)

PreviousAzure DNS
NextBIND

Last updated 10 days ago

You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.