The example answers in the page you link to show that consul is
correctly setting the time-to-live for the records it returns to zero.
That is enough to stop dnsmasq caching them: you don't need to do
anything else.
Cheers,
Simon.
On 16/02/18 08:29, Muhammad Hussein Fattahizadeh wrote:
> I need to know is there any configuration for cache all request but
> for special tld cache disable. in my example *.consul
>
> Use case is install dnsmasq for cache and manage dns but need to add
> some tld to consul service discovery and it's must be disable.
>
> dig @127.0.0.1 google.com -> use cache
> dig @127.0.0.1 github.com -> use cache
> dig @127.0.0.1 my.service.consul -> disable cache and forward it to
> consul service
>
> https://www.consul.io/docs/guides/forwarding.html
>
> thanks
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss