title: curl always connects to a specific ip:port pair
body: <p>I'm running into this scenario on one of our linux boxes.</p>
  
  <pre><code>$ curl 10.200.20.66:8087/ping
  curl: (7) Failed to connect to 219.135.102.36 port 8118: Connection timed out
  
  $ curl 114.114.114.114:80/x
  curl: (7) Failed to connect to 219.135.102.36 port 8118: Connection timed out
  </code></pre>
  
  <p>As you can see, curl has always been trying to connect 219.135.102.36:8118.  </p>
  
  <p>I've tried using <code>nc</code> and <code>telnet</code> and both of them give correct results.  </p>
  
  <p>Finally I've turned to <code>strace curl 10.200.20.66:8087/ping</code> and here's <a href="https://raw.githubusercontent.com/dunjut/stickers/master/strace_curl" rel="nofollow noreferrer">output</a>.</p>
  
  <p>Can anybody help explain why this happened?</p>