I have the following apache vhost_alias configuration:
<VirtualHost *:80>
  UseCanonicalName Off
  ServerAlias localdev.*
  VirtualDocumentRoot /home/test/workspace/%2+/site
  ErrorLog ${APACHE_LOG_DIR}/wpdev-error.log
</VirtualHost>
this will allow me to do localdev.example.com,localdev.example.net.au,etc.
My problem is how do I configure the address= in dnsmasq? 
Most of the tutorials I found uses subdomains as the wildcard or using the last part of the domain, i.e. example.com.dev which uses address=/dev/127.0.0.1.