title: Python 'requests' library - define specific DNS?
body: <p>In my project I'm handling all HTTP requests with python <a href="http://docs.python-requests.org/en/latest/" rel="noreferrer"><code>requests</code> library</a>.</p>
  
  <p>Now, I need to query the http server using specific DNS - there are two environments, each using its own DNS, and changes are made independently.</p>
  
  <p>So, when the code is running, it should use DNS specific to the environment, and not the DNS specified in my internet connection.</p>
  
  <p>Has anyone tried this using python-requests? I've only found solution for urllib2:<br>
   <a href="https://stackoverflow.com/questions/4623090/python-set-custom-dns-server-for-urllib-requests">https://stackoverflow.com/questions/4623090/python-set-custom-dns-server-for-urllib-requests</a> </p>