[Dnsmasq-discuss] feature request: allow wildcard in addn-hosts

gypsy gypsy at iswest.com
Wed Apr 12 15:48:01 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

In /etc/dnsmasq.conf
address=/baddomain.com/127.0.0.1

Reload dnsmasq.
--
gypsy



More information about the Dnsmasq-discuss mailing list