Message12514
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. |
|
Date |
User |
Action |
Args |
2007-08-23 14:05:59 | admin | link | issue615472 messages |
2007-08-23 14:05:59 | admin | create | |
|