Welcome! Log In Create A New Profile

Advanced

DNS TTLs being ignored

Noah Cantor
October 28, 2011 10:32AM
I have recently come across several related issues which I have tracked down
to nginx and the way it handles DNS.
I run nginx as a proxy for several back end services. It works really well,
except for 1 thing.
My proxy_pass refers to an upstream which points to a DNS entry.
That DNS entry is a CNAME with a TTL of 60 seconds.
Nginx doesn't appear to be honoring that TTL. This has happened twice now.
My upstream DNS information has changed, pointing to a new IP address.
Instead of recovering withing 1 minute (which would happen if TTLs were
being honored), I have had to restart nginx.
When I searched for it, I found that nginx doesn't appear to honor TTLs, at
all (http://www.ruby-forum.com/topic/2657341).

What I'm hoping to find out, is why?
Why does nginx cache DNS entries, instead of referring to the operating
system? The OS has DNS handling built in. It respects TTLs, and it works
perfectly. Nginx, on the other hand, is effectively broken as a load
balancer, since upstreams might change IP addresses at any time (which is
why we're using DNS names, instead of IP addresses.

Thanks,
Noah
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

DNS TTLs being ignored

Noah Cantor October 28, 2011 10:32AM

Re: DNS TTLs being ignored

Andrew Alexeev October 28, 2011 10:52AM

Re: DNS TTLs being ignored

Noah C. November 03, 2011 05:48AM

Re: DNS TTLs being ignored

Andrew Alexeev November 03, 2011 05:52AM

Re: DNS TTLs being ignored

Andrew Alexeev November 15, 2011 04:52AM

Re: DNS TTLs being ignored

Andrew Alexeev November 16, 2011 09:02AM

Re: DNS TTLs being ignored

Jonathan Matthews February 06, 2012 10:04AM

Re: DNS TTLs being ignored

Maxim Dounin February 06, 2012 10:14AM

Re: DNS TTLs being ignored

Noah C. November 18, 2011 09:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
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