Records

Get all Record

GET /record/list

Response:

Status: 200 OK
----
[
   {
      "id": 512565507407773697,
      "owner": "@",
      "rdata": "10 mail.example.com.",
      "zone": "example.com",
      "type": "MX",
      "ttl": "7200"
   }
]

Get a single record

GET /record/list/:id

Response:

Status: 200 OK
----
 {
      "id": 512565507407773697,
      "owner": "@",
      "rdata": "10 mail.example.com.",
      "zone": "example.com",
      "type": "MX",
      "ttl":"ttl": "7200"
 }

Create record

Warning

You can’t have multiple records with the same content

POST /record/add

Request body:

Name Type Description
zone string The zone name
owner string The owner of the record
rtype string The record type
rdata string The record RDATA
ttl int The choice of preserved tll values

Response:

Status: 201 CREATED
----
 {
      "id": 512565507407773697,
      "owner": "@",
      "rdata": "10 mail.example.com.",
      "zone": "example.com",
      "type":  "MX",
      "ttl": "ttl": "7200"
 }

Edit record

Note

It’s necessary to increase SOA serial if you make any change to the record that contains serial.

PUT /record/edit/:id

Request body:

Name Type Description
zone string The zone name
owner string The owner of the record
rtype string The record type
rdata string The record RDATA
ttl int The choice of preserved tll values

Response:

Status: 200 OK
----
{
      "id": 512565507407773697,
      "owner": "@",
      "rdata": "10 mail.example.com.",
      "zone": "example.com",
      "type": "MX",
      "ttl": "7200"
 }

Delete record

DELETE /record/delete/:id

Response:

Status: 204 NO CONTENT