Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.074 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'subject:error': 0.09; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'btw:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rachel': 0.16; 'wrote:': 0.18; 'jan': 0.19; 'so.': 0.22; 'header:In-Reply-To:1': 0.22; 'not.': 0.28; 'message-id:@mail.gmail.com': 0.28; 'pm,': 0.29; 'tue,': 0.32; 'to:addr:python-list': 0.34; 'probably': 0.34; 'sense,': 0.34; 'but': 0.37; 'received:google.com': 0.37; '2nd': 0.38; 'thomas': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'useful': 0.38; 'getting': 0.38; 'returned': 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; '2012': 0.67; 'addresses,': 0.68; 'gone': 0.68; 'subject:( ': 0.84; 'subject:skip:s 20': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ym/I3mDJqBENRFn52VDCwulFXOjJcPwu2HuKVt7+HDU=; b=bfYmZCajAey3+3Z9etQ5sHyaTs6gBW6E30StqANvIk6sV/xz1NLFgfS6aHyQ26Hzw1 dtSo4rkVUwoMrhhkJE8PwxdH5o4gZSeiXPwvcu1815YVpxKCaBDnHr/1e9C6v4bV0PcC DVx9CxSWkdyA6Z64VKpxQFRd7WKrvnVB5J8VI= MIME-Version: 1.0 In-Reply-To: References: <24123dfe-b2fc-4f4c-8dfe-23bfef19b205@m10g2000vbc.googlegroups.com> Date: Tue, 10 Jan 2012 18:29:28 +1100 Subject: Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326180571 news.xs4all.nl 6907 [2001:888:2000:d::a6]:48577 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18739 On Tue, Jan 10, 2012 at 5:42 PM, Thomas Rachel 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