Add Record
Add a Record to an Existing Domain for Hosted DNS
Add Record URL:
POSThttps://api.hyperleaf.com/api/dns/add_record
POST Examples
curl https://api.hyperleaf.com/api/dns/add_record?key=mykey \
-d 'domain=blah.com' \
-d 'type=A' \
-d 'host=api' \
-d 'record=4.3.4.3'curl https://api.hyperleaf.com/api/dns/add_record?key=mykey \
-d 'domain=blah.com' \
-d 'type=MX' \
-d 'host=@' \
-d 'priority=10' \
-d 'record=4.3.4.3'curl https://api.hyperleaf.com/api/dns/add_record?key=mykey \
-d 'domain=blah.com' \
-d 'type=CNAM' \
-d 'host=api' \
-d 'record=api.someotherhost.com'curl https://api.hyperleaf.com/api/dns/add_record?key=mykey \
-d 'domain=blah.com' \
-d 'type=TXT' \
-d 'record=v=spf1 include:_spf.mx.cloudflare.net ~all'Request Fields (* required)
domain*
string
the domain you're adding a record to
type*
string
Record Type: A, AAA, NS, MX, TXT, CNAM, etc. (full list below)
host
string
host you're adding (ex: if you're adding api.example.com, host would be just: host=api, set host to @ or omit if using root (@) host, example just: example.com
record*
string
the point to record, for example:
domain=example.com&host=api&record=3.4.3.4
ttl
int
time to live in seconds, how long until DNS record should be looked up again, specific supported list below ttl default: 3600 (1hour)
priority
int
priority for record types like MX and SVR (0-65535)
weight
int
weight for record types like MX and SVR (0-65535)
port
int
port for record types like SVR (0-65535)
Response Examples
Last updated