how to get info about a host name code example Example: get hostname socket.gethostbyname(socket.gethostname())