[Dnsmasq-discuss] Official support for REGEXP syntax?

Rob Townley rob.townley at gmail.com
Wed Jul 23 06:42:30 UTC 2025


Has it been tested thoroughly to handle absolute top-level domains where
there is always a dot at the very end such as :
  xyz.
  ads.xyz.
  google.com.




On Tue, Jul 22, 2025 at 7:45 PM <moistice at riseup.net> wrote:

> 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!
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20250723/bab82c9a/attachment.htm>


More information about the Dnsmasq-discuss mailing list