Skip to main content

List DNS zones

This endpoint allows you to list DNS zones hosted on Nameshield nameservers.
Many results can be returned, so a pagination system is provided with the limit and offset parameters.
You can also use filters to search for specific zones.

Endpoint

GET /dns/v3/zones

Parameters

NameLocationRequiredTypeDefault valueDescription
limitURLNoInteger100Number of zones to return (max 500)
offsetURLNoInteger0Offset used
sortURLNoStringnameField used to sort zones.
Allowed values : name, id
nameURLNoStringSearch by zone name.
Wildcard compatible
statusURLNoStringSearch by zone status.
Allowed values :
  • ACTIVE : The zone is active.
  • WAITING_VALIDATION : Modifications have been made and are awaiting validation.
  • DNS_PROPAGATION : Modifications have been validated and are awaiting propagation on DNS.
dnssec_statusURLNoStringSearch by DNSSEC status.
Allowed values :
  • UNSECURED: DNSSEC is disabled for the zone
  • SECURING: Enabling DNSSEC is in progress for the zone
  • SECURED: DNSSEC is enabled for the zone
  • UNSECURING: Disabling DNSSEC is in progress for the zone
strategicURLNoBooleanSearch by strategic property of the zone
customer_idURLNoIntegerSearch by customer ID.
include_subsidiariesURLNoBooleantrueInclude subsidiaries in the search.
parent_zoneURLNoStringSearch by parent zone name to find associated subzones.
Wildcard compatible
dns_hosting_onlyURLNoBooleanFilter on zones with dns hosting only or associated with a domain registered with Nameshield
managed_primary_dnsURLNoBooleanFilter on zones with a primary nameserver managed by Nameshield
nameserverURLNoStringSearch by nameserver.
Wildcard compatible

Response

A ZoneSearchResults object.

Example Request

GET /dns/v3/zones?limit=2&offset=2&name=nameshield.*&status=ACTIVE&strategic=true&dnssec_status=SECURED

Example Response

{
"message": "OK",
"data": {
"total": 100,
"limit": 2,
"offset": 2,
"results": [
{
"id": 100000,
"customer_id": 123,
"name": "nameshield.co.jp",
"status": "ACTIVE",
"dnssec_status": "SECURED",
"strategic": true,
"dns_hosting_only": false, |
"managed_primary_dns": true, |
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
}
]
},
{
"id": 102345,
"customer_id": 123,
"name": "nameshield.co.nz",
"status": "ACTIVE",
"dnssec_status": "SECURED",
"strategic": true,
"dns_hosting_only": false, |
"managed_primary_dns": true, |
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
}
]
}
]
}
}