DNS Resolve txt

Resolves DNS text records (TXT records) for a hostname

URLRequires AuthHTTP Method

api/v1/dns.resolve.txt

YES

POST

Headers

ArgumentExampleRequiredDescription

X-User-Id

myuser-name

Required

Your username hash (returned after you log in through the API)

X-Auth-Token

myauth-token

Required

Your token (returned after you log in through the API)

Query Params

ArgumentExampleRequiredDescription

url

localhost:3000

true

The hostname

Example Call

curl --location --request POST 'http://localhost:3000/api/v1/dns.resolve.txt?url=open.rocket.chat\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Result

Success

{
    "success": true
}

Errors

The following errors can occur upon the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • Invalid Hostname: Requires a valid hostname for the request to be made.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Last updated

Rocket.Chat versions receive support for six months after release.