Config file usualy in /etc/dnsmasq.conf
no-resolv
user=root
server=8.8.8.8
server=1.1.1.1
server=9.9.9.9
cache-size=6400
listen-address=127.0.0.1
# /usr/bin/curl /root/dns/hosts https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts | awk '$1 == "0.0.0.0" { print "::1 "$2"\n0.0.0.0 "$2""}' > /root/dns/hosts
You may want to choose a different hosts file.
You may want to create an @ reboot
record for crontab, or something like that
Add the following line to your dnsmasq.conf hostsdir=/root/dns