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 r.david.murray
Recipients ariel-wikimedia, r.david.murray
Date 2014-01-28.17:36:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390930578.34.0.113270690574.issue20418@psf.upfronthosting.co.za>
In-reply-to
Content
getaddrinfo is a thin wrapper around the system call.  Have you tried the same thing in a C program and had it work?

My guess would be that the all-numeric 'hostname' is being treated as the integer form of an IP address.  I can't immediately find any documentation that addresses this for getaddrinfo, but the impression I get from googling is that turning numbers into ip addresses is not specified behavior but is what (most?) libc implementations do.
History
Date User Action Args
2014-01-28 17:36:18r.david.murraysetrecipients: + r.david.murray, ariel-wikimedia
2014-01-28 17:36:18r.david.murraysetmessageid: <1390930578.34.0.113270690574.issue20418@psf.upfronthosting.co.za>
2014-01-28 17:36:18r.david.murraylinkissue20418 messages
2014-01-28 17:36:18r.david.murraycreate