socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

Chris Angelico rosuav at gmail.com
Tue Jan 10 02:29:28 EST 2012


On Tue, Jan 10, 2012 at 5:42 PM, Thomas Rachel
<nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de>
wrote:
> BTW: This behaviour might be useful with gethostbyaddr() as well - if the
> first one returned has gone away, you have the chance to reach the 2nd
> one...

In its directest sense, probably not. All you're getting is multiple
names for the same IP address. But if some of those names resolve to
multiple IP addresses, then it's entirely possible that what you say
is so.

ChrisA



More information about the Python-list mailing list