[Dnsmasq-discuss] Noob question

Simon Kelley simon at thekelleys.org.uk
Mon Aug 30 11:11:17 UTC 2021


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 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.

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.



More information about the Dnsmasq-discuss mailing list