Manage DNS records with asynchronous and simple APIs.
RESTKnot provide a high-level asynchronous API to existing Knot DNS server. This project consists of three applications: RESTKnot agent, RESTKnot API, and RESTKnot CLI. A user can create DNS record through web API provided by RESTKnot API, or as command line app using RESTKnot CLI. Both of them send command to RESTKnot agent which will be translated into Knot DNS action.
- Asynchronous operation
- Created default DNS records when adding new zone.
- Untangle all related record when deleting zone with single API.
- Prevent wrong RDATA format with validation support.
- Prevent record lost by checking RDATA contents before adding any record.
curl -X POST \
http://localhost:5000/api/domain/add \
-H 'X-API-key: 123' \
-F user_id=001 \
-F zone=example.com
curl -X PUT \
http://127.0.0.1:5000/api/record/edit/10 \
-H 'x-api-key: 123' \
-F zone=bar.com \
-F owner=@ \
-F rtype=NS \
-F rdata=one.exampledns.com. \
-F ttl=3600
curl -X DELETE \
http://localhost:5000/api/domain/delete \
-H 'X-API-Key: 123' \
-F zone=example.com