How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?

It’s an intriguing question and AFAIK that’s not going to work well. You can try to use the upstream module and use the directives for failover to see if it works as a hack.

2018 edit: a lot of things changed. Check the answer by @ohaal to get real information about this.

Leave a Comment