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
- Enter a domain and choose a record type.
- Press Look up.
- 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.
curl "https://vpn.golf/api/tools/dns?name=example.com&type=A"
dig example.com A +short
See all endpoints at /api/tools/.
Frequently asked questions
vpn.golf is a no-logs WireGuard VPN. Pick a hole, take the shot.
Step up to the tee for free