[Dnsmasq-discuss] Noob question

Trey Sis treysis at gmx.net
Mon Aug 30 12:07:10 UTC 2021

On 8/30/2021 13:15, Matus UHLAR - fantomas via Dnsmasq-discuss wrote:
> On 30.08.21 13:06, rrandom via Dnsmasq-discuss wrote:
>> Hello.  In one of the dnsmasq filterlists I found that domains
>> redirected
>> to `#` like `address=/example.com/#`
Wouldn't it be better to return NXDOMAIN instead of all-zeros? Otherwise
the application will try to connect to that address, which might cause
endless retries.
> this is in changelog for 2.80:
>        Implement --address=/example.com/# as (more efficient) syntactic
>        sugar for --address=/example.com/ and
>        --address=/example.com/::
>        Returning null addresses is a useful technique for ad-blocking.
>        Thanks to Peter Russell for the suggestion.
>> But in man I read:
>>> The  special  server  address '#' means, "use the standard servers", so
>>> --server=/google.com/ --server=/www.google.com/# will send
>>> queries
>>> for *.google.com to, except *www.google.com which will be
>>> forwarded as usual.
>>> will be forwarded as usual
>> Do I properly understand that `address=/example.com/#` does literally
>> nothing?  I want to block some websites but redirecting them to
>> is
>> hosts-way and not so lightweight solution.
> --address is something than --server.
> apparently the "#" has different meaning those two.


More information about the Dnsmasq-discuss mailing list