Add the following line to dnsmasq configuration file:

log-queries