This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author olson
Recipients
Date 2002-09-29.23:32:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=20112

Is this what you're looking for?

$ python
Python 2.1.1 (#2, Aug 
23 2001, 10:41:44) 
[GCC 2.95.3-5 (cygwin special)] on 
cygwin
Type "copyright", "credits" or "license" for more 
information.
>>> import socket
>>> 
socket.getfqdn()
'only'
>>> 
socket.gethostname()
'only'
>>> 
socket.gethostbyaddr(socket.gethostname())
('only', [], 
['140.221.10.174', '192.168.153.1', '192.168.43.1'])

(different 
machine & python, same behavior; the one I used before is now on a 
network where it doesn't have a real name).

I've seen this on all the 
Windows machines I've used; it seems like Windows refuses to let the 
DNS-based name come through, if it already thinks it knows the name 
based on the Netbios name of the machine.
History
Date User Action Args
2007-08-23 14:05:59adminlinkissue615472 messages
2007-08-23 14:05:59admincreate