DNS cache in nginx

Shay Peretz shay at peretz.in
Sat Jul 4 06:42:06 UTC 2015


Hello ,

I have an A record which resolve to 2 CNAME's , the DNS failover will
make the switch if something go wrong .

The problem is that after a change the nginx stick to the OLD IP
unless I reload it ..
any way the Caching can be disabled ?
I tried the following with no success :
add valid for the resolver ,
resolver 8.8.8.8 valid=5s;
  and or
resolver_timeout 1s;

Any recommendation to solve it  ?

-- shay



More information about the nginx mailing list