When reloading config (specifically for proxy_pass) - occasionally this will be seen: nginx: [emerg] host not found in upstream
However - the upstream server's name WILL resolve in the os (linux) - only nginx seems to have this problem.
This seems to be a recent regression - as it didn't seem to happen previous to 1.0.10 versions.
Has anyone noticed this recently?
Trying to narrow down places to search.
Nginx internally caches DNS for 5 minutes (not sure if this is configurable in later versions). Perhaps your resolver is failing for some reason, then Nginx caches this result.
I have seen this on systems with IPv6 enabled since be default the resolver requests both IPv4 and IPv6 records in parallel. This can be seen as a flood by the resolver resulting in a temporary DNS issue. I saw this popup on a box with a lot of email traffic when doing domain name verification.
Try adding:
to /etc/resolv.conf
This causes IPv6/v4 lookups to be done sequentially.