How to turn off DNS caching

Sem9999 nginx-forum at forum.nginx.org
Wed May 4 11:12:18 UTC 2016


Hi,

I am trying to connect to my AWS RDS (mysql) instance using the AWS supplied
DNS endpoint.

The problem is, the IP of the instance changes periodically.

It appears that nginx does not resolve the DNS name every time, but caches
it. 

Therefore nginx initially works, then at some point later, things break.

How can I turn off the DNS caching?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266604,266604#msg-266604



More information about the nginx mailing list