DNS-JSON over HTTP type should be number or string as per the docs #13778
Labels
content:edit
Request for content edits
documentation
Documentation edits
product:1.1.1.1
Related to 1.1.1.1 product
Existing documentation URL(s)
https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json/
What changes are you suggesting?
Clarify the
type
parameter type. According to the docs it can be a number or a string but some Cloudflare services only support strings.Either the docs need to specify this, or all services need to support both as per the docs.
Additional information
The
type
field in the supported parameter table says it can be anumber
or astring
.For regular DNS requests this works:
type=TXT
type=16
For ENS names it does not work:
type=TXT
type=16
In the second response, the answer type also changes from
16
to"TXT"
.Refs: ipfs/helia#474
The text was updated successfully, but these errors were encountered: