Openminds Sock API
Create DNS Record
Creates a new DNS Record.
URL
/dns_records
Method
POST
Data parameters
Required
user_token=[string]
client_token=[string]
subdomain=[string]
type=[string]
: "A", "AAAA", "CNAME", "MX", "PTR", "SRV", or "TXT"content=[string]
HINT: For SRV records, the content format should be "[weight] [port] [target]"
Optional
name=[string]
NOTE: Required for PTR and SRV recordsttl=[string]
priority=[string]
NOTE: Required for MX and SRV records, not applicable for other types
Sample usage
curl -X POST https://sock.openminds.be/api/v1/dns_records -d user_token=1234 -d client_token=-5678 -d subdomain=openminds.be \
-d type=SRV \
-d content="1 1111 target" \
-d name=test \
-d priority=0
Sample response
{
"content": "1 1111 target",
"dns_template_record_id": null,
"id": 399006,
"name": "test",
"priority": 0,
"ttl": 3600,
"type": "SRV"
}