title: How do we get TXT, CNAME and SOA records from dnspython?
body: <p>I have a requirement to have a dns query function to query a server for various records. I figured out how to get the MX record (most of the examples show this), A record and NS record. How do I get the TXT, CNAME and SOA records?</p>
  
  <p>Sample code snippet:</p>
  
  <pre><code>   import dns.resolver
     answer=dns.resolver.query("google.com", "A")
         for data in answer:
             print data.address
  </code></pre>
  
  <p>I tried replacing the query type with TXT and the data.address object with data.text, data.data etc, but ended up with attribute errors. What are the references for the data types I mentioned earlier?</p>