Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Update Nameservers

AI-generated

Overview

This node operation updates the nameservers for a specified VPS (Virtual Private Server) using the Hostinger API. It allows users to set primary, secondary, tertiary, and quaternary nameserver IP addresses for the VPS. This operation is useful for managing DNS settings of a VPS to control domain name resolution.

Use Case Examples

  1. Updating the primary and secondary nameservers of a VPS to new IP addresses to improve DNS resolution or switch DNS providers.
  2. Setting all four nameserver IP addresses for a VPS to ensure redundancy and reliability in DNS resolution.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS for which the nameservers will be updated.
Nameserver 1 Primary nameserver IP address (required).
Nameserver 2 Secondary nameserver IP address (optional).
Nameserver 3 Tertiary nameserver IP address (optional).
Nameserver 4 Quaternary nameserver IP address (optional).

Output

JSON

  • response - The JSON response from the Hostinger API after updating the VPS nameservers, containing details of the update operation.

Dependencies

  • Hostinger API with authentication credentials

Troubleshooting

  • Ensure the Virtual Machine ID is correct and corresponds to an existing VPS.
  • Verify that the primary nameserver IP address (ns1) is provided and valid, as it is required.
  • Check network connectivity and API authentication credentials if the request fails.
  • Common error messages may include invalid VM ID, unauthorized access, or invalid IP address format for nameservers.

Links

Discussion