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

Simon Kelley simon at thekelleys.org.uk
Sat Apr 22 21:42:40 BST 2006


>>>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.
>>>
>>>
>>>
>>
> 
> 
> please take a look at this:
> http://www.accs-net.com/hosts/DNSKong.html
> 
> more or less, that's the idea i like to see in dnsmasq.
> 

As far as I can see, that's the same thing. Don't be fooled by the lack
of *, address=/baddomain.com/127.0.0.1 will match ant *.baddomain.com
domain.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list