Logo
22ndjan API Documentation

Canonical Name (CNAME records)

GET {{dns_service}}/{{domain}}/cname

CNAME stands for Canonical Name. CNAME records can be used to alias one name to another.

For example, if you have a server where you keep all of your documents online, it might normally be accessed through docs.example.com. You may also want to access it through documents.example.com. One way to make this possible is to add a CNAME record that points documents.example.com to docs.example.com. When someone visits documents.example.com they will see the exact same content as docs.example.com.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "question": [ { "name": "getpostman.com.", "type": "CNAME", "class": "IN" } ], "answer": null, "authority": [ { "name": "getpostman.com.", "type": "SOA", "class": "IN", "ttl": 899, "rdlength": 69, "rdata": "ns-833.awsdns-40.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" } ] }



Curl
curl -X GET 'dns_service/domain/cname'

ENDPOINTS