title: how to use python to dig cname with @
body: <p>I found this bit of code:</p>
  
  <pre><code>  1 import dns.resolver
    2 answer=dns.resolver.query("google.com", "A")
    3 for data in answer:
    4         print data.address
  </code></pre>
  
  <p>And it works great but what i'm looking to do is this :
  dig +noall +answer google.com @ipAddress  (where ip address is a different location globally) Then make a loop to pass in different global ip addresses.</p>
  
  <p>Not sure how to get dns.resolve.query to query @ different ip addresses.</p>
  
  <p>Is that possible?</p>
  
  <p>Thanks</p>