Using socket.getfqdn() looks good to me (http://docs.python.org/library/socket.html)
If socket.getfqdn() doesn't return the FQDN it fails back to socket.gethostname() (that's the state of the art in flags.py).
Using socket.getfqdn() looks good to me (http:// docs.python. org/library/ socket. html)
If socket.getfqdn() doesn't return the FQDN it fails back to socket. gethostname( ) (that's the state of the art in flags.py).