To know IP of the a domain e.g - 'google.com'
import socket hostname = 'google.com' ip = socket.gethostbyname(hostname) print(ip)
172.217.163.78
Comment here