This is not needed since version 1.6 See https://cbonte.github.io/haproxy-dconv/1.6/configuration.htm...
It can do DNS resolution at runtime, additionally you can override bunch of options as to how DNS resolution behaves in terms of TTL, Failures etc