Re: [Python-Dev] Socket module corner cases

2006-05-30 Thread Andrew McNamara
>After a little more investigation here, it appears that getfqdn() returns >the name unchanged (or perhaps run through the system's resolver libs) if >there's no reverse DNS PTR entry. In the case given above, >otherbox.mydomain.com didn't have a reverse DNS entry, so getfqdn() >returned 'OTHERBOX'

Re: [Python-Dev] Socket module corner cases

2006-05-30 Thread Bruce Christensen
> > * getfqdn(): The function seems to not always return the FQDN. For > >example, if I run the following code from 'mybox.mydomain.com', I get > >strange output. Does getfqdn() remove the common domain between my > >hostname and the one that I'm looking up? > socket.getfqdn('otherbox') > >

Re: [Python-Dev] Socket module corner cases

2006-05-30 Thread Andrew McNamara
>Without further ado, the questions: > > * getfqdn(): The module docs specify that if no FQDN can be found, >socket.getfqdn() should return the hostname as returned by >gethostname(). However, CPython seems to return the passed-in hostname >rather than the local machine's hostname (as would be expe

[Python-Dev] Socket module corner cases

2006-05-30 Thread Bruce Christensen
Hello, I'm working on implementing a socket module for IronPython that aims to be compatible with the standard CPython module documented at http://docs.python.org/lib/module-socket.html. I have a few questions about some corner cases that I've found. CPython results below are from Python 2.4.3 (#6