title: Using an AWS ELB behind Varnish - is it possible?
body: <p>I'm trying to put a set of EC2 instances behind a couple of Varnish servers.  Our Varnish configuration very seldom changes (once or twice a year) but we are always adding/removing/replacing web backends for all kinds of reasons (updates, problems, load spikes).  This creates problems because we always have to update our Varnish configuration, which has led to mistakes and heartbreak.</p>
  
  <p>What I would like to do is manage the set of backend servers simply by adding or removing them from an Elastic Load Balancer.  I've tried specifying the ELB endpoint as a backend, but I get this error:</p>
  
  <pre><code>Message from VCC-compiler:
  Backend host "XXXXXXXXXXX-123456789.us-east-1.elb.amazonaws.com": resolves to multiple IPv4 addresses.
  Only one address is allowed.
  Please specify which exact address you want to use, we found these:
  123.123.123.1
  63.123.23.2
  31.13.67.3
  ('input' Line 2 Pos 17)
  .host = "XXXXXXXXXXX-123456789.us-east-1.elb.amazonaws.com";
  </code></pre>
  
  <p>The only consistent public interface ELB provides is its DNS name. The set of IP addresses this DNS name resolves to changes over time and with load.  </p>
  
  <p>In this case I would rather NOT specify one exact address - I would like to round-robin between whatever comes back from the DNS.  Is this possible?  Or could someone suggest another solution that would accomplish the same thing?</p>
  
  <p>Thanks,
  Sam</p>