[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

R. David Murray report at bugs.python.org
Tue Apr 16 17:44:37 CEST 2013


R. David Murray added the comment:

Note that socket.getfqdn is a wrapper around a couple of socket calls that are just wrappers of OS level socket calls.  If you take a look at socket.py you'll see the definition.  As Martin said earlier, if you (or anyone else) can figure out what hostname does differently and suggest how to patch our getfqdn method to behave similarly, I'm sure the patch will be welcome.

Unfortunately there won't be any good way to write a test for this.

----------
nosy: +r.david.murray
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5004>
_______________________________________


More information about the Python-bugs-list mailing list