host not found in upstream

fatzopilot nginx-forum at
Mon Dec 12 16:17:18 UTC 2011


I am interested in this as well (dynamic setup in a proxmox/openVZ
environment where the hostname abstraction is quite useful as (virtual)
network adapters change often)
What is so bad about the following:
* Try to resolve all names on startup and put them in the DNS in-memory
cache (current behaviour)
* just ignore non-resolvable hosts but log an error (new behaviour)
* if there is a request to the a non-resolvable host, try to resolve it
again (gethostbyname()) and if successful, put it in the in-memory cache
(new behaviour). 
* Alternatively/Additionallly, do step 1 every couple of minutes to
update the cache

Would really help!

Thanks and regards,

Posted at Nginx Forum:,186036,219939#msg-219939

More information about the nginx mailing list