I have done a lot of the same thing. A lot of the lists have errors in them. When my Pi-hols starts I get lots of messages like:
May 29 23:02:42 dnsmasq: bad name at /etc/pihole/gravity.list line 1954488
And if I look at that line, sure enough there will be something malformed in it.
My first thought was to grep out all of the “bad name” errors and write a little script to just remove those lines. Only I can not find any of the lines with those errors in the log.
Can someone tell me where these are stored on the pi?
Also, a suggestion for the developers. Have a command line switch to have the Pi-hole make a new master list omitting anything it does not like. It preens over the list anyway, why not have an option to report what it finds and clean it up. Keep the original under a new name.
I also suspect that I have a bunch of dupes in my master file, but I figure I will attack them after I get the malformed stuff fixed. Is it just my perception or does the logging of the malformed lines make the Pi-hole boot up much slower?
Anyway, thanks for a great piece of software. Please consider my idea for having a switch to preen the file over. It seems silly to have a seperate tool to do something the Pi-hole already has the core of.