[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/0.0.0.0 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/1.2.3.4 --server=/www.google.com/# will send
>>> queries
>>> for *.google.com to 1.2.3.4, 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
>> 0.0.0.0 is
>> hosts-way and not so lightweight solution.
>
> --address is something than --server.
> apparently the "#" has different meaning those two.
>
Cheers,

Treysis




More information about the Dnsmasq-discuss mailing list