HAProxy Wild Card

I am using HAProxy with Dnsmasq, I have compiled domains on Dnsmasq, but is there a wild card setting in HAProxy so I don’t have write all domains in frontend and backend.
I am using version 2.5
Thanks for your help