Skip to main content

Command Palette

Search for a command to run...

DNS Records Query API Service from Google

Updated
1 min read
DNS Records Query API Service from Google
A
I am a web developer from Navi Mumbai. Mainly dealt with LAMP stack, now into Django and getting into Laravel and Cloud. Founder of nerul.in and gaali.in

Did you know Google has an API service to fetch DNS records ?

For example, if you want to get the MX records of techcrunch.com, you can get it from here : https://dns.google/query?name=techcrunch.com&rr_type=MX&ecs= where the API endpoint is at https://dns.google/resolve?name=techcrunch.com&type=MX after which you can parse the data.

And the best part ? - its CORS enabled. Meaning you can fetch from client side JavaScript itself from any IP address.

Here's a demo to play with : https://anjanesh.s3.amazonaws.com/demo/google-dns.html

Y
Yash1y ago

Looks fun, do you have any idea about a similar service which can fetch the domains based on ip address (opposite of this), there are few apis, but I want an unlimited solution which talks directly to the source