Hello,

Am 17.09.2017 um 23:11 schrieb Ludovic Gasc:
>
>  
>
>     Regarding your specific example, what exactly is not working? Haproxy 
> will perform dns resolution on startup and my guess would be it throws an 
> error since %[hdr(host)] at that point is empty.
>
>
> Exactly.
> No idea to avoid that.

As per:
https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-init-addr

Use:
init-addr last,libc,none

to avoid failing on adress resolution errors. Remove libc if you only want 
dynamic DNS.
"none" at the end is the important keyword here.

Also make sure you use recent code, as DNS resolution has had its issues.

If in doubt, check:
http://www.haproxy.org/bugs/


cheers,
lukas


Reply via email to