title: returning 'A' DNS record in dnspython
body: <p>I am using <a href="http://www.dnspython.org/" rel="noreferrer">dnspython</a> to get the 'A' record and return the result (IP address for a given domain).</p>
  
  <p>I have this simple testing python script:</p>
  
  <pre><code>import dns.resolver
  
  def resolveDNS():
      domain = "google.com" 
      resolver = dns.resolver.Resolver(); 
      answer = resolver.query(domain , "A")
      return answer
  
  resultDNS = resolveDNS()
  print resultDNS
  </code></pre>
  
  <p>However, the output is:</p>
  
  <pre><code>&lt;dns.resolver.Answer object at 0x0000000004F56C50&gt;
  </code></pre>
  
  <p>I need to get the result as a string. If it is an array of strings, how to return it?</p>