How to get login computer's domain name?
Beverly Pope
bevkpope at yahoo.com
Sun May 26 08:15:49 EDT 2002
Thanks for the quick response :-). Unfortunately,
socket.gethostname() will not provide that information
at locations where the hostname command returns a
different domain name than the domainname command. I
know of several sites which do that to obfuscate site
information.
Do you know of any command that would return the same
information as the domainname command?
Thanks again.
--- "James J. Besemer" <jb at cascade-sys.com> wrote:
>
> 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
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
More information about the Python-list
mailing list