Configure DNS resolver in Nginx.