socket.gethostbyname()

socket.gethostbyname(host) → address

Return the IP address (a string of the form ‘255.255.255.255’) for a host.