[Python-bugs-list] [ python-Bugs-615472 ] socket.getfqdn() doesn't on Windows

noreply@sourceforge.net noreply@sourceforge.net
Fri, 27 Sep 2002 05:32:47 -0700


Bugs item #615472, was opened at 2002-09-27 07:32
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=615472&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert Olson (olson)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket.getfqdn() doesn't on Windows

Initial Comment:
On windows, socket.getfqdn() doesn't return a fully qualified 
name. Further, it returns the NETBIOS name (I think they call it 
that) of the computer, not a name that's useful for 
networking:

C:\>\Python22\python.exe
Python 
2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import socket
>>> 
socket.getfqdn()
'lorax'

Python 2.2.1 (from 
python.org), Windows 2000.

--bob

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=615472&group_id=5470