cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

DNS → Return nameserver's IP address

AI-generated

Summary

Retrieve the IP address of a specified nameserver hostname via the cPanel WHM API DNS lookup.

Inputs

  • Host (required) — The hostname of the nameserver whose IP address you want to return.

Output shape

a JSON object containing the IP address information of the specified nameserver

The output structure corresponds to the WHM API 'lookupnsip' response for the given hostname. Errors from the WHM API are returned as operation errors.

Links

Discussion