socket.gethostbyaddr(socket.gethostname()) will return a tuple containing fully qualified hostname, alternative hostnames, ip addresses (>1 if multihomed).
Thanks, --Kartic -- http://mail.python.org/mailman/listinfo/python-list
socket.gethostbyaddr(socket.gethostname()) will return a tuple containing fully qualified hostname, alternative hostnames, ip addresses (>1 if multihomed).
Thanks, --Kartic -- http://mail.python.org/mailman/listinfo/python-list