Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.stack.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'wed,': 0.03; 'test,': 0.04; 'https': 0.07; 'hosts': 0.09; 'subject:DNS': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'handshake': 0.16; 'handy': 0.16; 'sudo': 0.16; 'header:In-Reply-To:1': 0.21; 'file,': 0.22; 'received:209.85.210.174': 0.23; 'received:mail- iy0-f174.google.com': 0.23; 'fix': 0.23; 'server.': 0.25; 'subject:Question': 0.25; 'message-id:@mail.gmail.com': 0.28; 'problem': 0.28; 'server': 0.29; 'to:addr:python-list': 0.33; 'chris': 0.34; 'points': 0.34; 'force': 0.34; 'there': 0.35; 'test.': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'edit': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'target': 0.60; 'your': 0.60; 'ipb': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=bTuYos76PN05DESMxJlJ3wDLY6ot7uw6RW1gSCxW/5I=; b=N3Pi5G7UT8MRPOLNAu+SoX7C/L/5dP+wJJzhtbOvZmBj7ndgvUbzNhKB2pVcFHXo68 Q8UBWbyMzSNYEx3nYr4mfnVQjWBrvfakYBXwSJMJVuAI7BzEfNXV8W8+CDJmNVS/E0QI 8gg4COwv+kjCd9gHTYN1CTmM7HjaScIMN0O/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=B6zbJ3dIfQWV9/29wQuGLafth8bLoCZGTUq1uVgHE/PNlSJp6tiWKlkFN4KvOXAUBm wWwepEk72ksf8ZhFjOkHSAW4CeHXOt22GWxzjE3eosz38SF39y+qArGsdrq3YXSXwY9C SkuFwljCZdo2IMLr0tHEAXczBuF1iO+fn2z4Y= MIME-Version: 1.0 In-Reply-To: References: <13FAA3D4-ED1D-47AC-BADA-FD5C2D3729B7@gmail.com> Date: Wed, 15 Jun 2011 18:28:46 +1000 Subject: Re: Question regarding DNS resolution in urllib2 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: 14 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308126530 news.xs4all.nl 49175 [::ffff:82.94.164.166]:36923 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7678 On Wed, Jun 15, 2011 at 5:50 PM, saurabh verma wrote: >> If you edit your hosts file, it will affect where something.com points >> - you can force it to be IPA and then test, then force it to IPB and >> test. You'll still be downloading https://something.com so the HTTPS >> handshake should work exactly the same way. > > there are issues with editing /etc/hosts , what if i don't have sudo access > on the target server ? I need a way out programmatically to fix this problem You don't need to edit it on the server; just use any handy computer. You need only tinker with the configuration on the client, not the server. Chris Angelico