Function   /domain/dns/add

Function invocation

https://json.aftermarket.pl/domain/dns/add

Function description

Add new DNS entry for domain.

Input parameters

This function takes the following input parameters:

ParameterTypeRequiredDefault valueDescription
algorithm integer DNSSEC algorithm (used for DNSKEY) (deprecated and unused)
domain string "" Domain name (deprecated, please use 'name' parameter)
name string YES Domain name
check boolean false Only check for parameter correctness (deprecated and unused)
flag integer 0 Flag - required for CAA entry
host string "" Entry host name
port integer 0 Port - required for SRV entry
mx_priority integer 0 DNS MX priority (deprecated, please use 'priority' parameter)
priority integer 0 Priority - required for MX and SRV entries
tag string "" Tag - required for CAA entry (one of issue, issuewild, iodef)
type string YES Entry type (one of A, AAAA, CNAME, MX, TXT, NS, CAA, SRV)
value string YES Entry value
weight integer 0 Weight - required for SRV entry

Return value

New entry identifier (integer value).