cPanel WHM icon

cPanel WHM

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

Actions262

DNS → Return specific line from domain's DNS configuration

AI-generated

Summary

Retrieve a specific line from the DNS zone configuration of a given domain on the WHM server.

Inputs

  • Domain (required) — The domain name of the DNS zone to query.
  • Line (required) — The specific line number in the domain's DNS zone file to retrieve (minimum value 1).

Output shape

a single line of the domain's DNS zone configuration as returned by the WHM API

The operation returns only the specified zone record line for the given domain. Line numbering must start at 1. Errors in the request or invalid line numbers result in API error responses.

Links

Discussion