RESTful API
This document describes the API endpoints for the ddns-so service.
This document describes the RESTful API provided by `api.ddns.so` for resolving domain names and querying name records.
API Endpoint
https://api.ddns.soExample
curl https://api.ddns.so/name/nameset.dotResolve Name
Resolve a name to get its records.
URL : /name/:name
Method : GET
Auth required : NO
Permissions required : None
Parameters
name=[string]name to resolve (required)
Response
200 OK on success
Errors
404 Not Foundif name is not found500 Internal Server Erroron any other error
Get Subdomains
Get paginated list of subdomains for a name.
URL : /subdomains/:name
Method : GET
Auth required : NO
Permissions required : None
Parameters
name=[string]parent namebefore- Fetch subdomains before this name hashafter- Fetch subdomains after this name hashlimit- Maximum number of subdomains to return (default 50)order- Ordering of results -ascordesc(defaultasc)
Response
200 OK on success
Errors
404 Not Foundif parent name not found500 Internal Server Erroron any other error
Reverse Resolution
Reverse resolve an address to get the name.
URL : /reverse/pns/:address for PNS
URL : /reverse/ens/:address for ENS
Method : GET
Auth required : NO
Permissions required : None
Parameters
address=[string]address to reverse resolve
Response
200 OK on success
Errors
404 Not Foundif address not found500 Internal Server Erroron any other error
Last updated