[Dnsmasq-discuss] feature request: allow wildcard in addn-hosts
simon at thekelleys.org.uk
Fri Apr 14 14:28:31 BST 2006
> 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.
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
More information about the Dnsmasq-discuss