Skip to main content

Conditional records object

If you have different sets of records you need to configure depending on whether it’s a root domain, a subdomain, or you’re using custom name‑servers, then this is the best option for you. You just need to include three separate objects rootNS, domain and subDomain and the resolver will pick the right one: whenever the rootNS key is found it takes absolute precedence; if your provider doesn’t support NS modifications (or rootNS is absent), it falls back to subDomain for any subdomains, and finally to the domain records object. Sample conditional records object:

Multi-domain flows

With Entri, you can configure as many domains as you need using the end user flow. In order to achieve it, you only need to use a similar dnsRecords structure as the conditional records, in combination with the array form of the prefilledDomain property. This is a sample configuration for a multi-domain flow: