import socket def get_ip_address(domain): hostname = socket.gethostbyname(domain) return hostname