zones

Get Zone Records

Returns all the DNS records attached to a zone.

get/zones/{zone_id}/records

Request

Path parameters

zone_idinteger required

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "id": 6,
    "created": "2022-02-18T16:49:40.000Z",
    "updated": "2022-02-18T16:49:40.000Z",
    "name": "newdomain.com",
    "records": [
      {
        "id": 37,
        "zoneId": 6,
        "primary": false,
        "type": "A",
        "name": "www",
        "value": "199.16.172.38",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": 1,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 38,
        "zoneId": 6,
        "primary": false,
        "type": "A",
        "name": "www",
        "value": "199.16.173.236",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": 1,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 39,
        "zoneId": 6,
        "primary": true,
        "type": "TXT",
        "name": "press",
        "value": "atomic-domain-9bafa2a899c4ee84dbae5778",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": null,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 40,
        "zoneId": 6,
        "primary": false,
        "type": "CNAME",
        "name": "openhosting1._domainkey.press",
        "value": "openhosting1._domainkey.wpcloud.com.",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": null,
        "created": "2022-02-18T16:49:40.000Z"
      },
      {
        "id": 40,
        "zoneId": 6,
        "primary": false,
        "type": "CNAME",
        "name": "openhosting2._domainkey.press",
        "value": "openhosting2._domainkey.wpcloud.com.",
        "priority": null,
        "weight": null,
        "port": null,
        "ttl": 3600,
        "siteId": null,
        "created": "2022-02-18T16:49:40.000Z"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.