Varnish only resolve the ip on startup

Guillaume Quintard guillaume.quintard at
Mon Oct 4 15:43:19 UTC 2021

I think it makes sense for Varnish to natively support backends changing
their IPs. I do get the performance argument but now that there is a
cloud/container market and that Varnish has proven to be useful in it, this
basic functionality should be brought in.

Would it be acceptable to add a "host_string" to vrt_endpoint and fill it
if the VCL backend isn't an IP, then, we can add another cp_methods to
cache_conn_pool.c to use it? This way IPs are still super fast, and
hostnames become actually useful and a bit less confusing?

Guillaume Quintard

On Sun, Oct 3, 2021 at 9:07 AM Léo <leo.lelievre at> wrote:

> Hello,
> While setting up a docker-compose with a cache powered by varnish I came
> across an issue when recreating a container that varnish depends on. After
> the recreation varnish doesn't try to retrieve the new local ip. I've been
> told this is an upstream varnish issue (
> I have found some
> ways to solve the problem, but will an appropriate solution be considered ?
> Thanks in advance,
> Have a good day,
> Léo Lelievre
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list