How do we get TXT, CNAME and SOA records from dnspython?
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? Sample code snippet: import dns.resolver answer=dns.resolver.query("google.com", "A") for data in answer: print data.address 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? (To answer how you can figure out the