[Dnsmasq-discuss] Noob question
rrandom at dismail.de
Mon Aug 30 22:00:30 UTC 2021
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/126.96.36.199 --server=/www.google.com/# will send queries 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.
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at 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.
> is exactly equivalent to
> ie it returns all-zeros addresses for IPv4 and IPv6.
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
More information about the Dnsmasq-discuss