title: How can I query all IPs for a domain using dnspython
body: <p>I use <a href="http://www.dnspython.org/" rel="nofollow noreferrer">dnspython</a> to query a DNS server to resolve a domain name to its IP(s). </p>
  
  <p>When I try to resolve "google.co.uk" I get only one IP. However, using another resolver tool I get another IP. Both IPs are correct and I tested them by placing the IPs in the browser, both open "google.co.uk". </p>
  
  <p>Clearly there are more than IP asssigned for the domain name I am testing. Is there any way I can use in dnspython to retrieve all IPs for a given domain name? </p>
  
  <p>Here is my simple script:</p>
  
  <pre><code>import dns.resolver
  
  def resolve(domain):
    resolveList = []
        resolver = dns.resolver.Resolver(); #create a new instance named Resolver
        answer = resolver.query(domain,"A");
        y=0
        for rData in answer: 
            resolveList.append(rData)
            ++y        
    return resolveList
  
  domainName = "google.co.uk"
  queryResult = resolve(domainName);
  for result in queryResult:
      print queryResult[0]
  </code></pre>