Name icon

Name

Interact with Name API

Domain Name System → Get Record

AI-generated

Summary

Retrieves a single DNS record by its ID for a specified domain zone.

Inputs

  • domainName (required) — The domain name to retrieve the record for.
  • recordId (required) — The unique ID of the DNS record to retrieve.
  • requestOptions — Optional HTTP request settings including batching, proxy, timeout, and SSL certificate handling.

Output shape

a single record

The exact fields returned depend on the specific DNS record type (e.g., A, CNAME, MX) and its configuration.

Examples

Example 1: Fetch a specific A record for example.com using its internal ID.

Domain: example.com, Record ID: 1234567890

Links

Discussion