[Dnsmasq-discuss] Noob question
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
>> 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
> 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
> 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/126.96.36.199 --server=/www.google.com/# will send
>>> for *.google.com to 188.8.131.52, 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.
More information about the Dnsmasq-discuss