Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

DNS → DNS Snapshot Restore

AI-generated

Overview

This node operation allows users to restore a DNS snapshot for a specified domain using the Hostinger API. It is useful for scenarios where a user needs to revert DNS settings to a previous state captured in a snapshot, such as recovering from misconfigurations or accidental changes. For example, if a DNS zone was incorrectly updated, restoring a snapshot can quickly revert the DNS records to a known good configuration.

Use Case Examples

  1. Restore a DNS snapshot for the domain 'example.com' using a specific snapshot ID to revert DNS settings to a previous state.
  2. Automate DNS recovery processes by restoring snapshots after DNS zone validation failures.

Properties

Name Meaning
Snapshot ID The identifier of the DNS snapshot to restore. Required to specify which snapshot to revert to.
Domain The domain name for which the DNS snapshot will be restored. This specifies the DNS zone affected by the restore operation.
Request Body Optional raw JSON body for the POST request, allowing advanced users to specify additional parameters if needed.

Output

JSON

  • response - The JSON response from the Hostinger API after attempting to restore the DNS snapshot, containing details about the operation's success or failure.

Dependencies

  • Hostinger API authentication credential

Troubleshooting

  • Ensure the Snapshot ID and Domain are correctly specified; incorrect values will cause the API call to fail.
  • Check that the Hostinger API credentials are valid and have sufficient permissions to perform DNS snapshot restore operations.
  • If the API returns an error, review the error message included in the node output to identify issues such as invalid snapshot ID, domain not found, or network problems.

Links

Discussion