[Dnsmasq-discuss] Official support for REGEXP syntax?

moistice at riseup.net moistice at riseup.net
Wed Jul 23 00:21:10 UTC 2025


Why DNSmasq doesn't support address=/:(REGEXP):/0.0.0.0 officialy yet as
there are many patches out there?

https://github.com/lixingcong/dnsmasq-regex
https://github.com/cuckoohello/dnsmasq-regex
https://bbs.archlinux.org/viewtopic.php?id=286486

Currently DNSmasq is tied to forward-check or backward-check only:

address=/ads./0.0.0.0 # block ads.*
address=/xyz/0.0.0.0 # block spammy *.xyz

If you add the patch officialy, everyone benefit, like this:

address=/:^(ad|ads|advert|adage|ad001)\.:/0.0.0.0 # multiple.*
address=/:(tracking|linking|spamming):/0.0.0.0 # *middle*

Please consider it!



More information about the Dnsmasq-discuss mailing list