For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reset DNS records

Reset DNS zone to the default records. Use this endpoint to restore domain DNS to original configuration.

Reset DNS records

post

Reset DNS zone to the default records.

Use this endpoint to restore domain DNS to original configuration.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
domainstringRequired

Domain name

Example: mydomain.tld
Body
syncbooleanOptional

Determines if operation should be run synchronously

Default: trueExample: true
reset_email_recordsbooleanOptional

Determines if email records should be reset

Default: trueExample: true
whitelisted_record_typesstring[]Optional

Specifies which record types to not reset

Example: ["MX","TXT"]
Responses
200

Success response

application/json
messagestringOptionalExample: Request accepted
post/api/dns/v1/zones/{domain}/reset
POST /api/dns/v1/zones/{domain}/reset HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 80

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

Last updated

Was this helpful?