DNS: Zone

Reset DNS records

Reset DNS zone to the default records.

Use this endpoint to restore domain DNS to original configuration.

post/api/dns/v1/zones/{domain}/reset

Request

  • Base URL: https://developers.hostinger.com
  • URL: https://developers.hostinger.com/api/dns/v1/zones/{domain}/reset
  • Auth: HTTP bearer

Path parameters

domainstring required
Example:mydomain.tld

Domain name

Request body

syncboolean

Determines if operation should be run synchronously

reset_email_recordsboolean

Determines if email records should be reset

whitelisted_record_typesstring[]

Specifies which record types to not reset

Example request

{
  "sync": true,
  "reset_email_records": true,
  "whitelisted_record_types": [
    "MX",
    "TXT"
  ]
}

Response

Success response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes

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