Skip to main content

dnsRecords object

DNS records can be provided in two different ways: as a single array of records, or as an object that maps different sets of records to specific cases (root domain, subdomain, or individual domains).

Simple array

A single array of DNS records. This is the easiest way to send Entri the set of records you want to configure, applied to every domain with no domain or subdomain distinction.

Object form

If you need different sets of records depending on whether the user connects a root domain or a subdomain, or you are configuring several domains in one flow, dnsRecords can be an object instead of an array. See Multi-Domain & Conditional Records for the full reference.

Record object specification

advancedDmarcOptions (DMARC records only)

For DMARC TXT records you can attach an advancedDmarcOptions object to a record to take precise control over how Entri merges, overrides, or preserves individual DMARC tags. See DMARC Handling: Advanced Options for full examples and use cases.

Optional records

By default, every record in dnsRecords is required: if one of them cannot be configured, the whole flow fails. Setting optional: true on a record marks it as non-blocking. If an optional record cannot be configured, Entri continues with the remaining records and the flow still completes successfully. Records without the flag, or with optional: false, keep the current behavior, so existing configurations are not affected.
This feature is not supported by the GoDaddy, Squarespace, IONOS, and Cloudflare providers. On these providers, all records behave as required regardless of the optional flag.
A common use case is an SPF record that improves email deliverability but should not block the MX and DKIM records from being set up:
When an optional record fails, the user still reaches the Congratulations screen. The failed records are reported back to you in two places: the onSuccess browser event includes a failedOptionalRecords array, and webhooks track the optional records separately through the optional_records_propagation_status field without affecting propagation_status.

Dynamic configuration variables

You can insert dynamic variables into the dnsRecords section of your configuration object using syntax. For example, if the user sets up blog.example.com, the following variables will be available:
Please note, all the variables are case-sensitive and must be inputted in all upper-case.

Supported Record Types