title: Net::HTTP SocketError: getaddrinfo: nodename nor servname provided, or not known
body: <p>I have Googled this to death and gone through the related posts on this question.  I don't think it's a Rails / Ruby issue but not sure where to go next.</p>
  
  <pre><code>irb(main):007:0&gt; Net::HTTP.get_response("http://www.apple.com","")
  SocketError: getaddrinfo: nodename nor servname provided, or not known
  from /Users/dan/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.rb:879:in `initialize'
  </code></pre>
  
  <p>No network issues otherwise.  apple.com loads fine in a browser.  This is in a rails app in development on my local machine.  Looking to pull a JSON request via a third party API. All Net::HTTP requests film like this.  </p>