You once tried something similar (read here).
edit
I don't really see the point of presenting a customized IP, for a domain that matches a regex, as this will result in a certificate error most of the time...
If it's a requirement for a specific domain, the user can always use (dnsmasq):
-A, --address=/<domain>[/<domain>...]/[<ipaddr>]
In the original test, you attempted to reply with something that matched all possible blocking modes, e.g. 0.0.0.0
or ::
, nodata
, nxdomain
, configured IP address
(useless unless http). Given the recent changes you made here, I assume adding drop
would be a nice adittion.
/edit