# DNS Records Lookup > Returns the DNS records of a domain (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA) as JSON, plain text or HTML. ## Endpoints - JSON: GET https://dns.nqrah.net/api/records/{domain} - Text (zone-file style): GET https://dns.nqrah.net/api/records/{domain}?format=text - HTML: GET https://dns.nqrah.net/?domain={domain} - Filter by type: add ?type=TXT (comma-separated allowed) ## Response (JSON) { "domain": "example.com", "count": 2, "records": [ { "name": "example.com", "type": "TXT", "ttl": null, "value": "v=spf1 ..." } ] }