Example:
I have this line in /etc/dnsmasq.d/03-pihole-wildcard.conf:
address=/trackuity.com/192.168.2.250
However, in /etc/pihole/gravity.list, I still find:
192.168.2.250 static.trackuity.com
192.168.2.250 api.trackuity.com
Request: improve the routine to remove duplicate domains, so it takes the wildcard entries into account.
Warning: don't remove:
192.168.2.250 trackuity.vacature.com
it's a different domain...
eejeel
2
In the end of the pihole -g procedure remove all domains in the gravity.list which also are captured bij the wildcard list
An example: Wildcard is .doubleclick.net
In the gravity.list a domain like rd.intl.doubleclick.net can be removed. It's double.
This reduces the size of the gravity.list, makes the PiHole a little bit faster and reduce some memory.
Regex blocking in v4.0 should address this.
I'm closing this FR and release votes in favor of
https://discourse.pi-hole.net/t/reduce-size-gravity-list-with-active-wildcard-and-regex-entries/10698
as it takes into account wildcards and regex. If you still support the request please vote over there.