>>> import dns.resolver
>>> answer = dns.resolver.resolve('www.dnspython.org', 'A')
# Just iterate the answer to get the A records:
>>> for rr in answer:
... print(rr)
...
13.35.125.90
13.35.125.81
13.35.125.88
13.35.125.115
# If you want to look at all the CNAMEs you went through (if any)
>>> print(answer.chaining_result.cnames)
[<DNS www.dnspython.org. IN CNAME RRset: [<dmfrjf4ips8xa.cloudfront.net.>]>]
# The canonical name is the last name in the CNAME chain, if you chained, or the name you queried if you didn't chain:
>>> print(answer.chaining_result.canonical_name)