Adds new DNS records for a domain.
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Domain name to add DNS records for |
records | array | Yes | Array of DNS record objects to be added |
| Field | Type | Required | Description |
|---|---|---|---|
host | string | Yes | Host name for the DNS record |
value | string | Yes | Value of the DNS record |
recordType | string | Yes | Type of DNS record (e.g., MX, TXT) |
If a record is a DMARC TXT record ("recordType": "TXT" and host like "_dmarc" / "_dmarc."), you can include "excludedDMARCtags": ["rua", "ruf"] inside that same record object to exclude the auto generate of that tag for _dmarc record.
By default, these tags are included:
| Tag | Default Value | Description |
|---|---|---|
rua | mailto:<email> | Aggregate report recipient email |
ruf | mailto:<email> | Forensic/failure report recipient email |
fo | 0 | Failure reporting option |
rf | afrf | Forensic report format |
ri | 604800 | Report interval in seconds |
pct | 100 | Percentage of messages the policy applies to |
sp | reject | Subdomain policy |
aspf | r | SPF alignment mode |
adkim | r | DKIM alignment mode |