def binary_ip(host):
 return socket.inet_aton(socket.gethostbyname(host))

def binary_ip ( host ) : return socket . inet_aton ( socket . gethostbyname ( host ) )
binary_ip -> str resolve host and return ip as four byte string .