Makes sense, I assumed that the Debian package was compiled with that option by default...it's a PITA that it is not, do you think this is something to be reported to the maintainers of the package?
HA-Proxy version 1.6.6 2016/06/26 Copyright 2000-2016 Willy Tarreau <[email protected]> Build options : TARGET = linux2628 CPU = generic CC = gcc CFLAGS = -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 OPTIONS = USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_LUA=1 USE_PCRE=1 Default settings : maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 200 Encrypted password support via crypt(3): yes Built with zlib version : 1.2.8 Compression algorithms supported : identity("identity"), deflate("deflate"), raw-deflate("deflate"), gzip("gzip") Built with OpenSSL version : OpenSSL 1.0.1t 3 May 2016 Running on OpenSSL version : OpenSSL 1.0.1t 3 May 2016 OpenSSL library supports TLS extensions : yes OpenSSL library supports SNI : yes OpenSSL library supports prefer-server-ciphers : yes Built with PCRE version : 8.35 2014-04-04 PCRE library supports JIT : no (USE_PCRE_JIT not set) Built with Lua version : Lua 5.3.1 Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT IP_FREEBIND Available polling systems : epoll : pref=300, test result OK poll : pref=200, test result OK select : pref=150, test result OK Total: 3 (3 usable), will use epoll. On Mon, Jul 18, 2016 at 11:53 PM, Nenad Merdanovic <[email protected]> wrote: > Dropped ML by mistake > > On 07/18/2016 11:47 PM, Nenad Merdanovic wrote: > > Hello, > > > > On 07/18/2016 02:41 PM, Albert Casademont wrote: > >> Hi! > >> > >> I was trying to configure am IPv6 only backend using the hostname in > >> /etc/hosts and the HAProxy kept failing to initialize. As soon as I put > >> an IPV4 address for that hostname in /etc/hosts it worked. I have > >> resorted to manualy putting the IPV6 address in the HAProxy config file, > >> but ideally an IPV6 only hostname should work. > >> > >> Sample config: > >> > >> server test1 test1.domain:80 > >> > >> In /etc/hosts > >> > >> ::1 test1.domain > >> > >> It will fail to initialize > >> > > > > Can you check 'haproxy -vv' to see if HAproxy is compiled with > > USE_GETADDRINFO, if not, compile it with that option "make TARGET=... > > USE_GETADDRINFO=1" > > > > It should work then, if gai.conf is OK. > > > > Regards, > > Nenad > > >

