DNS lookup tool

Query any domain's DNS records — A, AAAA, MX, TXT, NS, CNAME — over encrypted DNS-over-HTTPS, straight from your browser.

How to use the dns lookup tool

  1. Enter a domain and choose a record type.
  2. Press Look up.
  3. Read the records returned over DNS-over-HTTPS.

How this works

Every lookup is sent over DNS-over-HTTPS (DoH) to a public resolver, so the query itself travels inside an encrypted HTTPS connection. A records point to IPv4 addresses, AAAA to IPv6, MX to mail servers, TXT to text data (like SPF/DKIM), NS to nameservers, and CNAME to aliases. To go the other way — IP to hostname — use the reverse DNS lookup.

Code & API examples

Use this from the command line or your code. The API is free, GET-only, and returns JSON.

API (curl)
curl "https://vpn.golf/api/tools/dns?name=example.com&type=A"
Shell (dig)
dig example.com A +short

See all endpoints at /api/tools/.

Frequently asked questions

DNS records map a domain to information: A/AAAA point to IP addresses, MX to mail servers, TXT to text data like SPF, NS to nameservers, CNAME to aliases.

DoH sends DNS queries inside an encrypted HTTPS connection so they can't be read or tampered with in transit. This tool uses it for every lookup.
Want to hide your IP for real?

vpn.golf is a no-logs WireGuard VPN. Pick a hole, take the shot.

Step up to the tee — free