Skip to content
tools.rajujha.dev
Search tools

DNS Lookup

Look up A, AAAA, MX, TXT, CNAME and NS


        
      

Enter a hostname, pick a type, then look up. The browser uses Cloudflare DNS-over-HTTPS first, then Google Public DNS, then this site’s API.

How to use this tool as an API

Looks up DNS records in the browser first: Cloudflare JSON DoH, then Google Public DNS, then this API. Answers are JSON (`provider`, `host`, `type`, `status`, `status_name`, `answers`). provider is optional: cloudflare (default) or google. type is A, AAAA, MX, TXT, CNAME, or NS. Up to 8 records are returned.

GET /api/dns

Params: host, type?, provider?

Example

GET /api/dns?host=example.com&type=A