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...