[Dnsmasq-discuss] sending any host to a local webserver.

Dennis Veatch dennisveatch at bellsouth.net
Sun Jan 21 22:47:05 GMT 2007


On Sunday 21 January 2007 17:40, Carlos Carvalho wrote:
> Dennis Veatch (dennisveatch at bellsouth.net) wrote on 21 January 2007 17:09:
>  >On Sunday 21 January 2007 17:01, Carlos Carvalho wrote:
>  >> Dennis Veatch (dennisveatch at bellsouth.net) wrote on 21 January 2007 
16:50:
>  >>  >> In the section to send for example doubleclick.net to 127.0.0.1, I
>  >>  >> can forsee this being a very long list. Is there some way to point
>  >>  >> address= to a text file instead of listing them in dnsmasq.conf?
>  >>  >>
>  >>  >> Thanks
>  >>  >
>  >>  >Think I figured it out... addn-hosts=/etc/adservers
>  >>
>  >> They're not hosts, and the syntax is different. I think you want
>  >>
>  >> conf-file = /etc/adservers
>  >
>  >Oh.
>  >
>  >Then would it be,
>  >
>  >127.0.0.1 host.to.block
>
> It can be done but doesn't have the same meaning. This way it'll work
> only for host.to.block, while the address= way will also work for
> anything.inside.host.to.block.
>

So follow the same syntax in dnsmasq.conf,

address=/doubleclick.net/127.0.0.1
-- 
You can tuna piano but you can't tune a fish.

http://www.lunar-linux.org/
It's worth a spin.



More information about the Dnsmasq-discuss mailing list