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

Carlos Carvalho carlos at fisica.ufpr.br
Sun Jan 21 22:40:59 GMT 2007


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.



More information about the Dnsmasq-discuss mailing list