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

Hi,
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 ?

example
server s1 app1.domain.com:80 resolvers mydns resolve-prefer ipv6

Thanks
Amir

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

1 Like