GET /v2/dns
Returns an array containing the list of existing domains together with all records belonging to those domains.
{
"id": "$domain_id",
"name": "$name",
"records": [
{
"record_id": "$record_id",
"record_name": "$record_name",
"record_type": "$record_type",
"record_prio": "$record_prio",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}, { ... }
]
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXTspdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlPUT /v2/dns
Adds a new domain.
{
"name": "$name",
"ip_address": "$ip_address"
}
{
"id": "$domain_id",
"name": "$name",
"records": [
{
"record_id": "$record_id",
"record_name": "$record_name",
"record_type": "$record_type",
"record_prio": "$record_prio",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}
]
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXTspdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlPUT /v2/dns/$DOMAIN_ID
Adds a record to domain $DOMAIN_ID.
{
"record_name": "$record_name",
"record_type": "$record_type",
"record_priority": "$record_priority",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXTspdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlThe $lbr_* fields are available only for $record_type A or AAAA.
{
"id": "$domain_id",
"name": "$name",
"records": [
{
"record_id": "$record_id",
"record_name": "$record_name",
"record_type": "$record_type",
"record_prio": "$record_prio",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}
]
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXT.spdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlPOST /v2/dns/$RECORD_ID/record
Edits the data of record $RECORD_ID.
{
"record_name": "$record_name",
"record_type": "$record_type",
"record_priority": "$record_priority",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXTspdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlThe $lbr_* fields are available only for $record_type A or AAAA.
{
"id": "$domain_id",
"name": "$name",
"records": [
{
"record_id": "$record_id",
"record_name": "$record_name",
"record_type": "$record_type",
"record_prio": "$record_prio",
"record_ttl": "$record_ttl",
"record_value": "$record_value",
//or instead of record_value
"lbr_type": "$lbr_type",
"lbr_ips": "$lbr_ips",
"lbr_port": "$lbr_port",
"lbr_url": "$lbr_url"
}
]
}
A,AAAA,CAA,CNAME,MX,NS,PTR,SRV,TXT.spdns_rec (port check), spdns_url (URL check), pickrandom (random server selection); if this field is provided, the value of $record_value is ignoredspdns_recspdns_urlDELETE /v2/dns/$RECORD_ID/record
Deletes record $RECORD_ID.
{
"success":true
}
DELETE /v2/dns/$DOMAIN_ID
Deletes domain $DOMAIN_ID.
{
"success":true
}