From 8499c9bd3eaf527f353565eb10e3f71061ec55ae Mon Sep 17 00:00:00 2001 From: qasimleoo Date: Tue, 17 Nov 2026 19:01:38 +0500 Subject: [PATCH] docs: describe the authoritative DNS lookup and its two companions isAuthoritative shipped without reaching the specification, so nobody outside the team could find it. It is on /v2.0/dns/live and /v2.0/dns/bulk/live now, with what it actually changes: the zone's own nameservers answer, so TTLs are the zone's full values, an alias into another zone yields its CNAME and no address, and the answer is kept out of the DNS history database. cnameDepth and relativeRecords were missing too. cnameDepth matters here because it is how a caller follows the alias the authoritative answer stops at, so documenting one without the other explains nothing. The bulk endpoint spells it cname_depth while the single lookup spells it cnameDepth. That is how the API behaves, and the wrong spelling is ignored in silence, so both are written down as they are. --- docs/endpoints/dns.md | 24 +++++++++++++++++++-- docs/languages/csharp.md | 5 +++++ docs/languages/go.md | 5 +++++ docs/languages/java.md | 13 ++++++++---- docs/languages/javascript.md | 5 +++++ docs/languages/kotlin.md | 5 +++++ docs/languages/php.md | 5 +++++ docs/languages/python.md | 5 +++++ docs/languages/ruby.md | 5 +++++ docs/languages/swift.md | 5 +++++ docs/languages/typescript.md | 9 ++++++-- examples/csharp/DnsBulk.cs | 2 ++ examples/csharp/DnsLive.cs | 3 +++ examples/go/DnsBulk.go | 2 ++ examples/go/DnsLive.go | 3 +++ examples/java/DnsBulk.java | 6 ++++-- examples/java/DnsLive.java | 7 +++++-- examples/javascript/DnsBulk.js | 2 ++ examples/javascript/DnsLive.js | 3 +++ examples/kotlin/DnsBulk.kt | 2 ++ examples/kotlin/DnsLive.kt | 3 +++ examples/php/DnsBulk.php | 2 ++ examples/php/DnsLive.php | 3 +++ examples/python/DnsBulk.py | 2 ++ examples/python/DnsLive.py | 3 +++ examples/ruby/DnsBulk.rb | 2 ++ examples/ruby/DnsLive.rb | 3 +++ examples/swift/DnsBulk.swift | 2 ++ examples/swift/DnsLive.swift | 3 +++ examples/typescript/DnsBulk.ts | 4 +++- examples/typescript/DnsLive.ts | 5 ++++- spec/whoisfreaks-openapi.yaml | 38 +++++++++++++++++++++++++++++++++- 32 files changed, 171 insertions(+), 15 deletions(-) diff --git a/docs/endpoints/dns.md b/docs/endpoints/dns.md index 9c209f8..b6411d6 100644 --- a/docs/endpoints/dns.md +++ b/docs/endpoints/dns.md @@ -19,6 +19,9 @@ Real-time DNS record lookup. 1 credit per query. | `domainName` | query | no | string | | Domain to look up. | | `ipAddress` | query | no | string | | Use for PTR lookups | | `type` | query | yes | string | `all` | all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME | +| `cnameDepth` | query | no | integer | `0` | How many CNAME links to follow before returning the records they point at. 0, the default, returns only what the queried name itself holds. Anything outside 1 to 4 is treated as 0. | +| `relativeRecords` | query | no | boolean | `true` | Keeps the records picked up for other names along the way, such as a CNAME target's own records. Set false to return only the records whose name is the queried domain itself. PTR records are kept either way. | +| `isAuthoritative` | query | no | boolean | `false` | Set true to read the records from the zone's own nameservers instead of a recursive resolver, so every TTL is the zone's full value rather than what is left of a cached copy. A name that is an alias into another zone then returns its CNAME and no address, because that is all the zone holds: pass cnameDepth to follow it. Answers read this way are not added to the DNS history database. | | `format` | query | no | string | `json` | Response format. JSON when the parameter is left out. (one of: json, xml) | **Response** (`DnsResponse`) @@ -85,6 +88,9 @@ with whoisfreaks.ApiClient(config) as client: # type (str, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" # domain_name (str, optional, keyword): Domain to look up # ip_address (str, optional, keyword): Use for PTR lookups + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # relative_records (bool, optional, keyword): Keeps the records picked up for other names along the way, such as a CNAME ta...; default True + # is_authoritative (bool, optional, keyword): Set true to read the records from the zone's own nameservers instead of a rec...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" result = api.dns_live("A,MX,TXT", domain_name="whoisfreaks.com") print(json.dumps(result.to_dict(), indent=2)) @@ -103,10 +109,13 @@ import { Configuration, DNSApi, ResponseError } from "whoisfreaks"; const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsLive({ type, domainName?, ipAddress?, format? }) +// dnsLive({ type, domainName?, ipAddress?, cnameDepth?, relativeRecords?, isAuthoritative?, format? }) // type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" // domainName (string, optional): Domain to look up // ipAddress (string, optional): Use for PTR lookups +// cnameDepth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME ta...; default true +// isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a rec...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const result = await api.dnsLive({ type: "A,MX,TXT", domainName: "whoisfreaks.com" }); @@ -135,6 +144,9 @@ main().catch(async (err: unknown) => { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. package main @@ -1121,6 +1133,8 @@ Up to 100 domains + 100 IPs in one request. | Parameter | In | Required | Type | Default | Description | |-----------|----|----------|------|---------|-------------| | `type` | query | yes | string | `all` | Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. | +| `cname_depth` | query | no | integer | `0` | How many CNAME links to follow before returning the records they point at. 0, the default, returns only what each queried name itself holds. Anything outside 1 to 4 is treated as 0. Note the spelling: the single lookup endpoint names this cnameDepth. | +| `isAuthoritative` | query | no | boolean | `false` | Set true to read the records from each zone's own nameservers instead of a recursive resolver, so every TTL is the zone's full value rather than what is left of a cached copy. A name that is an alias into another zone then returns its CNAME and no address; pass cname_depth to follow it. Answers read this way are not added to the DNS history database. | | `format` | query | no | string | `json` | Response format. JSON when the parameter is left out. (one of: json, xml) | **Request body** (`application/json`, model `DnsBulkRequest`) @@ -1177,6 +1191,8 @@ with whoisfreaks.ApiClient(config) as client: # dns_bulk parameters: # type (str, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" # dns_bulk_request (DnsBulkRequest, required): request body + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # is_authoritative (bool, optional, keyword): Set true to read the records from each zone's own nameservers instead of a re...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" body = whoisfreaks.DnsBulkRequest(domain_names=["whoisfreaks.com", "example.com"]) result = api.dns_bulk("A,MX,TXT", body) @@ -1196,9 +1212,11 @@ import { Configuration, DNSApi, ResponseError, type DnsBulkRequest } from "whois const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsBulk({ type, dnsBulkRequest, format? }) +// dnsBulk({ type, dnsBulkRequest, cname_depth?, isAuthoritative?, format? }) // type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" // dnsBulkRequest (DnsBulkRequest, required): request body +// cname_depth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a re...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const body: DnsBulkRequest = { domainNames: ["whoisfreaks.com", "example.com"] }; @@ -1226,6 +1244,8 @@ main().catch(async (err: unknown) => { // Run it from the Getting Started module: save it as main.go, then `go run .` // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object diff --git a/docs/languages/csharp.md b/docs/languages/csharp.md index d016f18..56112d9 100644 --- a/docs/languages/csharp.md +++ b/docs/languages/csharp.md @@ -217,6 +217,9 @@ Console.WriteLine(result.ToJson()); // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. using System; using WhoisFreaks.Api; @@ -422,6 +425,8 @@ Console.WriteLine(result.ToJson()); // Run it from the Getting Started project: replace Program.cs with this file, then `dotnet run` // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object using System; diff --git a/docs/languages/go.md b/docs/languages/go.md index b41aced..4ec0097 100644 --- a/docs/languages/go.md +++ b/docs/languages/go.md @@ -291,6 +291,9 @@ func main() { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. package main @@ -591,6 +594,8 @@ func main() { // Run it from the Getting Started module: save it as main.go, then `go run .` // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object diff --git a/docs/languages/java.md b/docs/languages/java.md index f801afc..d5fad20 100644 --- a/docs/languages/java.md +++ b/docs/languages/java.md @@ -291,6 +291,9 @@ public class WhoisReverse { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. import com.whoisfreaks.client.ApiClient; import com.whoisfreaks.client.Configuration; @@ -305,8 +308,8 @@ public class DnsLive { auth.setApiKey(System.getenv("WHOISFREAKS_API_KEY")); // set once, sent with every call DnsApi api = new DnsApi(client); - // dnsLive(type, domainName, ipAddress, format); null leaves an optional parameter unset - DnsResponse result = api.dnsLive("A,MX,TXT", "whoisfreaks.com", null, null); + // dnsLive(type, domainName, ipAddress, cnameDepth, relativeRecords, isAuthoritative, format); null leaves an optional parameter unset + DnsResponse result = api.dnsLive("A,MX,TXT", "whoisfreaks.com", null, null, null, null, null); System.out.println(result); } } @@ -531,6 +534,8 @@ public class DnsReverseV23 { // Run it from the Getting Started project: mvn -q compile exec:java -Dexec.mainClass=DnsBulk // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object import com.whoisfreaks.client.ApiClient; @@ -551,8 +556,8 @@ public class DnsBulk { DnsBulkRequest body = new DnsBulkRequest() .domainNames(Arrays.asList("whoisfreaks.com", "example.com")); - // dnsBulk(type, dnsBulkRequest, format); null leaves an optional parameter unset - BulkDnsResponse result = api.dnsBulk("A,MX,TXT", body, null); + // dnsBulk(type, dnsBulkRequest, cname_depth, isAuthoritative, format); null leaves an optional parameter unset + BulkDnsResponse result = api.dnsBulk("A,MX,TXT", body, null, null, null); System.out.println(result); } } diff --git a/docs/languages/javascript.md b/docs/languages/javascript.md index aeeecf1..9366d67 100644 --- a/docs/languages/javascript.md +++ b/docs/languages/javascript.md @@ -241,6 +241,9 @@ const api = new DNSApi(client); // type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" // opts.domainName (string, optional): Domain to look up // opts.ipAddress (string, optional): Use for PTR lookups +// opts.cnameDepth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// opts.relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME ta...; default true +// opts.isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a rec...; default false // opts.format (string, optional): Response format. JSON when the parameter is left out; one of json, xml; default "json" async function main() { const result = await api.dnsLive("A,MX,TXT", { domainName: "whoisfreaks.com" }); @@ -468,6 +471,8 @@ const api = new DNSApi(client); // dnsBulk(type, dnsBulkRequest, opts) // type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" // dnsBulkRequest (DnsBulkRequest, required): request body +// opts.cname_depth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// opts.isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a re...; default false // opts.format (string, optional): Response format. JSON when the parameter is left out; one of json, xml; default "json" async function main() { const body = DnsBulkRequest.constructFromObject({ domainNames: ["whoisfreaks.com", "example.com"] }); diff --git a/docs/languages/kotlin.md b/docs/languages/kotlin.md index 9c9bc1f..0aac18d 100644 --- a/docs/languages/kotlin.md +++ b/docs/languages/kotlin.md @@ -223,6 +223,9 @@ fun main() { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. import com.whoisfreaks.client.apis.DNSApi import com.whoisfreaks.client.infrastructure.ApiClient @@ -407,6 +410,8 @@ fun main() { // Run it from the Getting Started project: gradle run -PmainClass=DnsBulkKt // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object import com.whoisfreaks.client.apis.DNSApi diff --git a/docs/languages/php.md b/docs/languages/php.md index 285735a..3860d88 100644 --- a/docs/languages/php.md +++ b/docs/languages/php.md @@ -268,6 +268,9 @@ try { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. require __DIR__ . '/vendor/autoload.php'; @@ -536,6 +539,8 @@ try { // // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object diff --git a/docs/languages/python.md b/docs/languages/python.md index ee9c8f2..40c9b8c 100644 --- a/docs/languages/python.md +++ b/docs/languages/python.md @@ -237,6 +237,9 @@ with whoisfreaks.ApiClient(config) as client: # type (str, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" # domain_name (str, optional, keyword): Domain to look up # ip_address (str, optional, keyword): Use for PTR lookups + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # relative_records (bool, optional, keyword): Keeps the records picked up for other names along the way, such as a CNAME ta...; default True + # is_authoritative (bool, optional, keyword): Set true to read the records from the zone's own nameservers instead of a rec...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" result = api.dns_live("A,MX,TXT", domain_name="whoisfreaks.com") print(json.dumps(result.to_dict(), indent=2)) @@ -457,6 +460,8 @@ with whoisfreaks.ApiClient(config) as client: # dns_bulk parameters: # type (str, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" # dns_bulk_request (DnsBulkRequest, required): request body + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # is_authoritative (bool, optional, keyword): Set true to read the records from each zone's own nameservers instead of a re...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" body = whoisfreaks.DnsBulkRequest(domain_names=["whoisfreaks.com", "example.com"]) result = api.dns_bulk("A,MX,TXT", body) diff --git a/docs/languages/ruby.md b/docs/languages/ruby.md index 02f373a..183c4e4 100644 --- a/docs/languages/ruby.md +++ b/docs/languages/ruby.md @@ -253,6 +253,9 @@ end # - domain_name (string, optional): Domain to look up. # - ip_address (string, optional): Use for PTR lookups # - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +# - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +# - relative_records (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +# - is_authoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... # - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. require "json" @@ -493,6 +496,8 @@ end # # Parameters for dnsBulk (POST /v2.0/dns/bulk/live): # - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +# - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +# - is_authoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... # - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. # - body: DnsBulkRequest (required): request body object diff --git a/docs/languages/swift.md b/docs/languages/swift.md index eb3f65a..3c07b59 100644 --- a/docs/languages/swift.md +++ b/docs/languages/swift.md @@ -269,6 +269,9 @@ do { // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // // Top-level code for Sources//main.swift (see Getting Started). @@ -523,6 +526,8 @@ do { // // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object // diff --git a/docs/languages/typescript.md b/docs/languages/typescript.md index cd8653b..653e110 100644 --- a/docs/languages/typescript.md +++ b/docs/languages/typescript.md @@ -262,10 +262,13 @@ import { Configuration, DNSApi, ResponseError } from "whoisfreaks"; const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsLive({ type, domainName?, ipAddress?, format? }) +// dnsLive({ type, domainName?, ipAddress?, cnameDepth?, relativeRecords?, isAuthoritative?, format? }) // type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" // domainName (string, optional): Domain to look up // ipAddress (string, optional): Use for PTR lookups +// cnameDepth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME ta...; default true +// isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a rec...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const result = await api.dnsLive({ type: "A,MX,TXT", domainName: "whoisfreaks.com" }); @@ -511,9 +514,11 @@ import { Configuration, DNSApi, ResponseError, type DnsBulkRequest } from "whois const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsBulk({ type, dnsBulkRequest, format? }) +// dnsBulk({ type, dnsBulkRequest, cname_depth?, isAuthoritative?, format? }) // type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" // dnsBulkRequest (DnsBulkRequest, required): request body +// cname_depth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a re...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const body: DnsBulkRequest = { domainNames: ["whoisfreaks.com", "example.com"] }; diff --git a/examples/csharp/DnsBulk.cs b/examples/csharp/DnsBulk.cs index d5fe897..9aba598 100644 --- a/examples/csharp/DnsBulk.cs +++ b/examples/csharp/DnsBulk.cs @@ -2,6 +2,8 @@ // Run it from the Getting Started project: replace Program.cs with this file, then `dotnet run` // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object using System; diff --git a/examples/csharp/DnsLive.cs b/examples/csharp/DnsLive.cs index 4784a5b..5069a99 100644 --- a/examples/csharp/DnsLive.cs +++ b/examples/csharp/DnsLive.cs @@ -4,6 +4,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. using System; using WhoisFreaks.Api; diff --git a/examples/go/DnsBulk.go b/examples/go/DnsBulk.go index ccd2480..9dcf70e 100644 --- a/examples/go/DnsBulk.go +++ b/examples/go/DnsBulk.go @@ -2,6 +2,8 @@ // Run it from the Getting Started module: save it as main.go, then `go run .` // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object diff --git a/examples/go/DnsLive.go b/examples/go/DnsLive.go index 2797c4e..05f9f40 100644 --- a/examples/go/DnsLive.go +++ b/examples/go/DnsLive.go @@ -4,6 +4,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. package main diff --git a/examples/java/DnsBulk.java b/examples/java/DnsBulk.java index 5865e64..09e4c7b 100644 --- a/examples/java/DnsBulk.java +++ b/examples/java/DnsBulk.java @@ -2,6 +2,8 @@ // Run it from the Getting Started project: mvn -q compile exec:java -Dexec.mainClass=DnsBulk // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object import com.whoisfreaks.client.ApiClient; @@ -22,8 +24,8 @@ public static void main(String[] args) throws Exception { DnsBulkRequest body = new DnsBulkRequest() .domainNames(Arrays.asList("whoisfreaks.com", "example.com")); - // dnsBulk(type, dnsBulkRequest, format); null leaves an optional parameter unset - BulkDnsResponse result = api.dnsBulk("A,MX,TXT", body, null); + // dnsBulk(type, dnsBulkRequest, cname_depth, isAuthoritative, format); null leaves an optional parameter unset + BulkDnsResponse result = api.dnsBulk("A,MX,TXT", body, null, null, null); System.out.println(result); } } diff --git a/examples/java/DnsLive.java b/examples/java/DnsLive.java index 39ae6cf..78f160c 100644 --- a/examples/java/DnsLive.java +++ b/examples/java/DnsLive.java @@ -4,6 +4,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. import com.whoisfreaks.client.ApiClient; import com.whoisfreaks.client.Configuration; @@ -18,8 +21,8 @@ public static void main(String[] args) throws Exception { auth.setApiKey(System.getenv("WHOISFREAKS_API_KEY")); // set once, sent with every call DnsApi api = new DnsApi(client); - // dnsLive(type, domainName, ipAddress, format); null leaves an optional parameter unset - DnsResponse result = api.dnsLive("A,MX,TXT", "whoisfreaks.com", null, null); + // dnsLive(type, domainName, ipAddress, cnameDepth, relativeRecords, isAuthoritative, format); null leaves an optional parameter unset + DnsResponse result = api.dnsLive("A,MX,TXT", "whoisfreaks.com", null, null, null, null, null); System.out.println(result); } } diff --git a/examples/javascript/DnsBulk.js b/examples/javascript/DnsBulk.js index ac0ae1b..c54e609 100644 --- a/examples/javascript/DnsBulk.js +++ b/examples/javascript/DnsBulk.js @@ -10,6 +10,8 @@ const api = new DNSApi(client); // dnsBulk(type, dnsBulkRequest, opts) // type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" // dnsBulkRequest (DnsBulkRequest, required): request body +// opts.cname_depth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// opts.isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a re...; default false // opts.format (string, optional): Response format. JSON when the parameter is left out; one of json, xml; default "json" async function main() { const body = DnsBulkRequest.constructFromObject({ domainNames: ["whoisfreaks.com", "example.com"] }); diff --git a/examples/javascript/DnsLive.js b/examples/javascript/DnsLive.js index 5d3eedc..a3c672c 100644 --- a/examples/javascript/DnsLive.js +++ b/examples/javascript/DnsLive.js @@ -11,6 +11,9 @@ const api = new DNSApi(client); // type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" // opts.domainName (string, optional): Domain to look up // opts.ipAddress (string, optional): Use for PTR lookups +// opts.cnameDepth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// opts.relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME ta...; default true +// opts.isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a rec...; default false // opts.format (string, optional): Response format. JSON when the parameter is left out; one of json, xml; default "json" async function main() { const result = await api.dnsLive("A,MX,TXT", { domainName: "whoisfreaks.com" }); diff --git a/examples/kotlin/DnsBulk.kt b/examples/kotlin/DnsBulk.kt index 0e4314e..3cbb6fa 100644 --- a/examples/kotlin/DnsBulk.kt +++ b/examples/kotlin/DnsBulk.kt @@ -2,6 +2,8 @@ // Run it from the Getting Started project: gradle run -PmainClass=DnsBulkKt // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object import com.whoisfreaks.client.apis.DNSApi diff --git a/examples/kotlin/DnsLive.kt b/examples/kotlin/DnsLive.kt index 975ea4e..e44cf53 100644 --- a/examples/kotlin/DnsLive.kt +++ b/examples/kotlin/DnsLive.kt @@ -4,6 +4,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. import com.whoisfreaks.client.apis.DNSApi import com.whoisfreaks.client.infrastructure.ApiClient diff --git a/examples/php/DnsBulk.php b/examples/php/DnsBulk.php index 26bf0a8..134f190 100644 --- a/examples/php/DnsBulk.php +++ b/examples/php/DnsBulk.php @@ -3,6 +3,8 @@ // // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object diff --git a/examples/php/DnsLive.php b/examples/php/DnsLive.php index c41bee8..7f9d9e4 100644 --- a/examples/php/DnsLive.php +++ b/examples/php/DnsLive.php @@ -5,6 +5,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. require __DIR__ . '/vendor/autoload.php'; diff --git a/examples/python/DnsBulk.py b/examples/python/DnsBulk.py index 0fabe57..99f67fb 100644 --- a/examples/python/DnsBulk.py +++ b/examples/python/DnsBulk.py @@ -17,6 +17,8 @@ # dns_bulk parameters: # type (str, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" # dns_bulk_request (DnsBulkRequest, required): request body + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # is_authoritative (bool, optional, keyword): Set true to read the records from each zone's own nameservers instead of a re...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" body = whoisfreaks.DnsBulkRequest(domain_names=["whoisfreaks.com", "example.com"]) result = api.dns_bulk("A,MX,TXT", body) diff --git a/examples/python/DnsLive.py b/examples/python/DnsLive.py index 7cc9341..58a0987 100644 --- a/examples/python/DnsLive.py +++ b/examples/python/DnsLive.py @@ -18,6 +18,9 @@ # type (str, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" # domain_name (str, optional, keyword): Domain to look up # ip_address (str, optional, keyword): Use for PTR lookups + # cname_depth (int, optional, keyword): How many CNAME links to follow before returning the records they point at. 0,...; default 0 + # relative_records (bool, optional, keyword): Keeps the records picked up for other names along the way, such as a CNAME ta...; default True + # is_authoritative (bool, optional, keyword): Set true to read the records from the zone's own nameservers instead of a rec...; default False # format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json" result = api.dns_live("A,MX,TXT", domain_name="whoisfreaks.com") print(json.dumps(result.to_dict(), indent=2)) diff --git a/examples/ruby/DnsBulk.rb b/examples/ruby/DnsBulk.rb index a7780e7..8eb31f2 100644 --- a/examples/ruby/DnsBulk.rb +++ b/examples/ruby/DnsBulk.rb @@ -2,6 +2,8 @@ # # Parameters for dnsBulk (POST /v2.0/dns/bulk/live): # - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +# - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +# - is_authoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... # - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. # - body: DnsBulkRequest (required): request body object diff --git a/examples/ruby/DnsLive.rb b/examples/ruby/DnsLive.rb index 7c6c295..3c2345b 100644 --- a/examples/ruby/DnsLive.rb +++ b/examples/ruby/DnsLive.rb @@ -4,6 +4,9 @@ # - domain_name (string, optional): Domain to look up. # - ip_address (string, optional): Use for PTR lookups # - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +# - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +# - relative_records (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +# - is_authoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... # - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. require "json" diff --git a/examples/swift/DnsBulk.swift b/examples/swift/DnsBulk.swift index ebe76c2..06be928 100644 --- a/examples/swift/DnsBulk.swift +++ b/examples/swift/DnsBulk.swift @@ -2,6 +2,8 @@ // // Parameters for dnsBulk (POST /v2.0/dns/bulk/live): // - type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to all. +// - cname_depth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a recursive re... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // - body: DnsBulkRequest (required): request body object // diff --git a/examples/swift/DnsLive.swift b/examples/swift/DnsLive.swift index 7436b71..5375222 100644 --- a/examples/swift/DnsLive.swift +++ b/examples/swift/DnsLive.swift @@ -4,6 +4,9 @@ // - domainName (string, optional): Domain to look up. // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME +// - cnameDepth (integer, optional): How many CNAME links to follow before returning the records they point at. 0, the defau... +// - relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME target's own... +// - isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a recursive res... // - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out. // // Top-level code for Sources//main.swift (see Getting Started). diff --git a/examples/typescript/DnsBulk.ts b/examples/typescript/DnsBulk.ts index 3c14cb5..a195bf2 100644 --- a/examples/typescript/DnsBulk.ts +++ b/examples/typescript/DnsBulk.ts @@ -6,9 +6,11 @@ import { Configuration, DNSApi, ResponseError, type DnsBulkRequest } from "whois const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsBulk({ type, dnsBulkRequest, format? }) +// dnsBulk({ type, dnsBulkRequest, cname_depth?, isAuthoritative?, format? }) // type (string, required): Comma separated DNS record types to return, for example A,MX,TXT. Defaults to...; default "all" // dnsBulkRequest (DnsBulkRequest, required): request body +// cname_depth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// isAuthoritative (boolean, optional): Set true to read the records from each zone's own nameservers instead of a re...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const body: DnsBulkRequest = { domainNames: ["whoisfreaks.com", "example.com"] }; diff --git a/examples/typescript/DnsLive.ts b/examples/typescript/DnsLive.ts index 8983c90..e251425 100644 --- a/examples/typescript/DnsLive.ts +++ b/examples/typescript/DnsLive.ts @@ -6,10 +6,13 @@ import { Configuration, DNSApi, ResponseError } from "whoisfreaks"; const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY }); const api = new DNSApi(config); -// dnsLive({ type, domainName?, ipAddress?, format? }) +// dnsLive({ type, domainName?, ipAddress?, cnameDepth?, relativeRecords?, isAuthoritative?, format? }) // type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME; default "all" // domainName (string, optional): Domain to look up // ipAddress (string, optional): Use for PTR lookups +// cnameDepth (number, optional): How many CNAME links to follow before returning the records they point at. 0,...; default 0 +// relativeRecords (boolean, optional): Keeps the records picked up for other names along the way, such as a CNAME ta...; default true +// isAuthoritative (boolean, optional): Set true to read the records from the zone's own nameservers instead of a rec...; default false // format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json" async function main(): Promise { const result = await api.dnsLive({ type: "A,MX,TXT", domainName: "whoisfreaks.com" }); diff --git a/spec/whoisfreaks-openapi.yaml b/spec/whoisfreaks-openapi.yaml index e995efb..528ac81 100644 --- a/spec/whoisfreaks-openapi.yaml +++ b/spec/whoisfreaks-openapi.yaml @@ -6,7 +6,7 @@ info: \ Domain Reputation, and bulk database downloads.\n\n## Authentication\nAll requests require an `apiKey`\ \ query parameter.\n\n## Resources\n- Docs: https://whoisfreaks.com/documentation\n- Billing: https://billing.whoisfreaks.com\n\ - Support: support@whoisfreaks.com\n" - version: 2026-11-17.2 + version: 2026-11-18.1 contact: name: WhoisFreaks Support email: support@whoisfreaks.com @@ -559,6 +559,28 @@ paths: required: true description: "all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME" example: "A,MX,TXT" + - name: cnameDepth + description: "How many CNAME links to follow before returning the records they point at. 0, the default, returns only what the queried name itself holds. Anything outside 1 to 4 is treated as 0." + in: query + schema: + type: integer + minimum: 0 + maximum: 4 + default: 0 + example: 1 + - name: relativeRecords + description: "Keeps the records picked up for other names along the way, such as a CNAME target's own records. Set false to return only the records whose name is the queried domain itself. PTR records are kept either way." + in: query + schema: + type: boolean + default: true + - name: isAuthoritative + description: "Set true to read the records from the zone's own nameservers instead of a recursive resolver, so every TTL is the zone's full value rather than what is left of a cached copy. A name that is an alias into another zone then returns its CNAME and no address, because that is all the zone holds: pass cnameDepth to follow it. Answers read this way are not added to the DNS history database." + in: query + schema: + type: boolean + default: false + example: true - $ref: "#/components/parameters/Format" responses: "200": @@ -2302,6 +2324,20 @@ paths: default: all required: true example: "A,MX,TXT" + - name: cname_depth + description: "How many CNAME links to follow before returning the records they point at. 0, the default, returns only what each queried name itself holds. Anything outside 1 to 4 is treated as 0. Note the spelling: the single lookup endpoint names this cnameDepth." + in: query + schema: + type: integer + minimum: 0 + maximum: 4 + default: 0 + - name: isAuthoritative + description: "Set true to read the records from each zone's own nameservers instead of a recursive resolver, so every TTL is the zone's full value rather than what is left of a cached copy. A name that is an alias into another zone then returns its CNAME and no address; pass cname_depth to follow it. Answers read this way are not added to the DNS history database." + in: query + schema: + type: boolean + default: false - $ref: "#/components/parameters/Format" requestBody: required: true