Question regarding DNS resolution in urllib2

Chris Angelico rosuav at gmail.com
Wed Jun 15 04:28:46 EDT 2011


On Wed, Jun 15, 2011 at 5:50 PM, saurabh verma <nitw.saurabh at gmail.com> 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



More information about the Python-list mailing list