The choice of which IP to use is up to the client, not the dns server. The default algorithm is defined by RFC 6724. The only special feature related to this that dnsmasq has is localise-queries. You didn't give the details for us to know if it's applicable.