Function   /domain/dns/add

Function invocation

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, TLSA)
value string YES Entry value
weight integer 0 Weight - required for SRV entry
tlsaUsage integer 0 TLSA Usage - required for TLSA entry
tlsaSelector integer 0 TLSA Selector - required for TLSA entry
tlsaMatchingType integer 0 TLSA Matching Type - required for TLSA entry

Return value

New entry identifier (integer value).