Check if /etc/dnsmasq.conf is from pihole. If so replace with an original and install new in .d directory. Add and unmolested version of dnsmasq.conf to the ./advanced directory.