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 indnsRecords 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.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 upblog.example.com, the following variables will be available:
Please note, all the variables are case-sensitive and must be inputted
in all upper-case.

