how to disable nginx internal dns cache?

nevernet nginx-forum at
Sat May 4 12:42:52 UTC 2013

my network structure is: 
proxy server 1(nginx)-->proxy server2(nginx)-->web server

proxy server2 has dynamic ip address.  the ip address will be changed
untime. so i use one domain for it:

but proxy server1(nginx) has been cached the ip of domain:  
so when the new ip was assigned to, but proxy server1(nginx)
still has old ip address.  

i have searched on google, somebody said that nginx will cache the dns entry
for 300 seconds(5minutes),  but after 5 minutes ,event after 5 hours , the
proxy server1(nginx) still has old ip address, 

please help me, any ideas will be appreciated.

thank you

Posted at Nginx Forum:,238835,238835#msg-238835

More information about the nginx mailing list