Installs and configures dnsmasq in a very flexbile manner.