Force to update dns #7449
-
is there any way maybe from admin api to force update services ip ? it seems to be caching it and when i update docker swarm service it takes few minutes to update usually less then 5 but still i would like to update it manually |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
No. Kong honors the DNS records TTL. There is a setting to override TTL's if you set that to something short, it could alleviate the problem maybe. Otherwise you would have to execute a "reload" to clear the DNS cache. |
Beta Was this translation helpful? Give feedback.
-
this is what i use what is "reload" ? and how to execute it ? |
Beta Was this translation helpful? Give feedback.
-
reload: https://docs.konghq.com/gateway-oss/2.4.x/cli/#kong-reload |
Beta Was this translation helpful? Give feedback.
No. Kong honors the DNS records TTL. There is a setting to override TTL's if you set that to something short, it could alleviate the problem maybe. Otherwise you would have to execute a "reload" to clear the DNS cache.