Kind of got into a bit of a brain stump here. I was using the nslookup package and i wanted to get the ip address of a domain (in this case google). When I run the code below, i get an output of: "<nslookup.nslookup.DNSresponse object at 0x00000204C9001548>" instead of the ip address.
Code:
import nslookup
theLook = nslookup.Nslookup()
print(theLook.dns_lookup(domain="google.com"))
Yes, i know this is probably a stupid question but i swear, ive been searching for an answer and couldn't find one for my case. I also think i may have been able to solve this before but i can't remember how. Thanks for any answers.