Getting fully qualified name

Samuel Tardieu (sam@inf.enst.fr)
Fri, 2 Sep 1994 12:42:52 +0200

I need to get the full qualified name of the host on which a Python program
is running. How can I get it ? gethostname() returns 'khamsin' instead
of 'khamsin.enst.fr' (yeah, I'm on a Sun :( )

Sam

-- 
"La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette"
                                                       Charles Baudelaire