[Dnsmasq-discuss] feature request: allow wildcard in addn-hosts
Simon Kelley
simon at thekelleys.org.uk
Fri Apr 14 14:28:31 BST 2006
dny wrote:
> i like to put a list of blocked hosts in addn-hosts options.
> currently, i can put 127.0.0.1 www.baddomain.com
>
> now, i really love it if i can put something like this into it:
> 127.0.0.1 *.baddomain.com
>
> so that, i dont care if the domain have a dozen or hundreds subdomains,
> they all blocked.
>
> rgds,
> dny
>
That facility is available, but not in a hosts file (Hosts files are
read by other programs, so I can't change/extend the format at will. To
get the effect you want, add
address=/baddomain.com/127.0.0.1
to /etc/dnsmasq.conf
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list