Thank you. Btw why dnsmasq redirects that connections but doesn't just drop 
them? Honestly, I don't know much about networking but simple dropping seems 
like easier for resources.

On 30/08/21 12:11PM, Simon Kelley wrote:
> On 30/08/2021 11:06, rrandom via Dnsmasq-discuss wrote:
> > Hello. In one of the dnsmasq filterlists I found that domains redirected to 
> > `#` like `address=/example.com/#`
> > 
> > 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.
> > 
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss@lists.thekelleys.org.uk
> > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> > 
> 
> The meaning of # as the address is different in --server and --address,
> so be wary of getting confused by the man page text you quoted, which is
> talking about --server.
> 
> address=/example.com/#
> 
> is exactly equivalent to
> 
> address=/example.com/0.0.0.0
> address=/example.com/::
> 
> ie it returns all-zeros addresses for IPv4 and IPv6.
> 
> Cheers,
> 
> Simon.
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to