in reply to Short-circuiting name resolution

Presuming A and B can be connected to without going through the load balancer, is there some reason not to use their IP addresses rather than a name? That'd seem simplest.

Addendum: if the problem is getting the correct virtual host to reply just forge an appropriate Host: foo header along with the request. curl or LWP both should be capable of doing this.

The cake is a lie.
The cake is a lie.
The cake is a lie.