Bind(Listen) IPv4 --> server (backend) conncet ipv6

I would like to configure HAProxy for HTTP Listener to listen on ipv4
I would like the resolver to query the DNS for servername and to get the server IPV6
I would like HAProxy to connect to the resolved ip via ipv6
is it supported by HAproxy 1.6.3 ?
Can someone show sample of configuration ?

if i will add to the server line resolve-prefer ipv6 , it will query the resolver for ipv6 and connect to the server via ipv6 no matter that the bind is ip v4 ?

server s1 resolvers mydns resolve-prefer ipv6


Yes. The address-family of the frontend configuration is completely irrelevant to the backend’s; so yes, you configuration should be fine.

1 Like