title: How to get host entries of a domain
body: <p>We want to get host entries of a domain.</p>
  
  <p>Given a domain name (let us say: google.com) I need to get the host records (ex: CNAME, TXT etc..records).
  Is it possible to get them even when we do not have the control on the domain (i.e domain not purchased by us?</p>
  
  <p>Actually, my requirement is that when users enter domain name in my application (which is in development), I want to check if the domain belongs to them or not (I will be asking them to add some random string as TXT record) and then will read the TXT record of that domain in the backend and verify the domain.
  I think google does this (when we setup google apps account).
  Any pointers in this will help a lot.
  Thank you in advance.</p>