How to get login computer's domain name?

James J. Besemer jb at cascade-sys.com
Fri May 24 10:37:16 EDT 2002


    import socket
    socket.gethostname()

"Beverly K. Pope" wrote:

> Is there a module that has commands for getting the domain name of the
> computer to which I am logged in (not "local")?  Or do I have to open
> a pipe to the appropriate command?
>
> Thanks!
> --
> http://mail.python.org/mailman/listinfo/python-list

--
James J. Besemer  503-280-0838 voice
http://cascade-sys.com  503-280-0375 fax
mailto:jb at cascade-sys.com







More information about the Python-list mailing list