I have got in a situation where hosts mentioned in the haproxy are resolved into it's ip and sends the request. But in host's server, where they have configured to receive request only with the host as name say "ug1.firstlink.com:367/yts/display
" instead as by it's ip "10.78.15.123:367/yts/display
".
Tried to use resolvers, but iam not able to start haproxy and i am getting errors, so would like to know if any one who has already used it once.
My configuration:
resolvers mydns
nameserver dns1 ug1.firstlink.com:367
and in listener
server-template server1 1 ug1.firstlink.com:367 check resolvers mydns init-addr none
Please let me know how to configure properly that haproxy should disable dns resolution and thanks for the response.