Although I imagine you've resolved this already, for more info have a look at http://gc-taylor.com/blog/2011/11/10/nginx-aws-elb-name-resolution-resolvers/