dots.v2.domains.byDomain_name().records.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.domains.byDomain_name(domain_name).records.get(requestConfiguration?: RequestConfiguration<RecordsRequestBuilderGetQueryParameters>): Promise<undefined | RecordsGetResponse>Description
To get a listing of all records configured for a domain, send a GET request to /v2/domains/{domain_name}/records.
The list of records returned can be filtered by using the name and type query parameters. For example, to only include A records for a domain, send a GET request to /v2/domains/$DOMAIN_NAME/records?type=A. name must be a fully qualified record name. For example, to only include records matching sub.example.com, send a GET request to /v2/domains/$DOMAIN_NAME/records?name=sub.example.com. Both name and type may be used together.
Parameters
Path Parameters
domain_namestring requiredExample:
example.comThe name of the domain itself.
Query Parameters
namestring optionalExample:
sub.example.comA fully qualified record name. For example, to only include records matching sub.example.com, send a GET request to
/v2/domains/$DOMAIN_NAME/records?name=sub.example.com.typestring optionalThe type of the DNS record. For example: A, CNAME, TXT, ...
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.domains
.byDomain_name("example.com").records.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.domains
.byDomain_name("example.com").records.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/domains/{domain_name}/records in the API reference for additional detail on responses, headers, parameters, and more.