Discussion:
[Dnsmasq-discuss] cache global exclude special tld
Muhammad Hussein Fattahizadeh
2018-02-16 08:29:19 UTC
Permalink
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
Simon Kelley
2018-02-16 20:59:53 UTC
Permalink
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.
Post by Muhammad Hussein Fattahizadeh
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.
consul service
https://www.consul.io/docs/guides/forwarding.html
thanks
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...