dnsmasq can be used to resolve DNS queries

No need to run your own DNS server if you are using dnsmasq.
Use dnsmasq directly to resolve DNS for entire subdomains.