title: How do I test an specific load balancer instance over HTTPS?
body: <p>I have a collection of Nginx services working as load balancers for a single address, let's say <code>www.example.com</code>. I would like to have a test suite that targets each of these machines in isolation, not going through the DNS load balancing, as in going straight to the address.</p>
  
  <p>When I try to do something like that in <code>curl</code> I get:</p>
  
  <pre><code> $ curl -H "Host: www.example.com" -v  https://10.10.10.10/                         
  *   Trying 10.10.10.10...
  * Connected to 10.10.10.10 (10.10.10.10) port 443 (#0)
  * found 173 certificates in /etc/ssl/certs/ca-certificates.crt
  * found 697 certificates in /etc/ssl/certs
  * ALPN, offering http/1.1
  * SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
  *    server certificate verification OK
  *    server certificate status verification SKIPPED
  * SSL: certificate subject name (www.example.com) does not match target host name '10.10.10.10'
  * Closing connection 0
  curl: (51) SSL: certificate subject name (www.example.com) does not match target host name '10.10.10.10'
  </code></pre>
  
  <p>I know <code>10.10.10.10</code> is not the same name, but I'd like to instruct the tool to believe it is (because I know it is, these are all load balancers serving the same domain).</p>
  
  <p>Is there any way to do that that won't involve dealing with DNS resolution?</p>