Welcome! Log In Create A New Profile

Advanced

Information on DNS caching in Nginx

Posted by spackler 
Information on DNS caching in Nginx
January 07, 2011 05:53PM
We recently ran into an issue that indicated that the DNS ttl of a site was not respected by nginx. So far I've been unable to find anything in the documentation other than a resolver and resolver_timeout setting.

The hostname whose IP was changed was in a location such as:

location ~ ^/api/v3/.*/events.* {
proxy_pass https://events.company.com;
}

Does anyone have any information about dns caching inside nginx? Perhaps some documentation or anecdotes?

Thanks,

Eric
Re: Information on DNS caching in Nginx
February 08, 2011 01:31AM
Sorry I can't offer a solution, but I seem to be experiencing a very similar issue (nginx/0.7.65).

We are using a proxy pass to a temporary host. When the host is deleted, we change it's DNS entry in order to give the client a "custom 404". Although the ttl is apparently zero, it still takes nginx 60 seconds to direct requests to the new IP address.

I am very curious if anyone knows any possible workarounds, or a likely place to look in source for hard coded timeout, etc.

Thanks,
Jay
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready