Yea, I didn't write that part out, but it would be fairly easy to write a bash script to turn it on and off (and even a simple web site with a on/off button, as you are running apache in one of the solutions). You could just move the dnsmasq.adlist.conf file out of the dnsmasq.d directory, and then restart dnsmasq.d, and vice versa.