I would like to do something like an "nslookup" to resolve an address of a site through my DNS servers, because in the example below, I only get through DNS that I have in my machine.
How could I tell the IP of my server to resolve the Google address for example?
import socket
dns = socket.gethostbyname('www.google.com')
print(dns)