All Collections
DNS Setup Instructions
How to create TXT records for SPF & DMARC with Azure DNS
How to create TXT records for SPF & DMARC with Azure DNS

Instructions to create TXT records such as SPF and DMARC for Azure DNS.

Eric Johnson avatar
Written by Eric Johnson
Updated over a week ago
  1. Sign in to the Azure portal with your Azure account.

  2. Create a DNS zone (If a DNS zone for the domain is already created, skip to step 3.)

    1. At upper left, select Create a resource, then Networking, and then DNS zone.

    2. On the Create DNS zone page, type or select the following values:

      • Name: Type for this quickstart example. The DNS zone name can be any value that is not already configured on the Azure DNS servers. A real-world value would be a domain that you bought from a domain name registrar.

      • Resource group: Select Create new, enter MyResourceGroup, and select OK. The resource group name must be unique within the Azure subscription.

    3. Select Create.

  3. Create a DNS record

    1. In the Azure portal, under All resources, open the DNS zone in the MyResourceGroup resource group. You can enter in the Filter by name box to find it more easily.

    2. At the top of the DNS zone page, select + Record set.

    3. On the Add record set page, type or select the following values:

      • Host: Enter the host name for the TXT record. For example, enter @ for an SPF record, or enter the value _dmarc for a DMARC record.

      • Type: TXT

      • Value: The value you are setting as the destination of the Host.

      • TTL: Determine how long the server should cache information.

  4. Click 'Save' to publish the newly created record.

Create a free OnDMARC account to test your configuration.

Did this answer your question?