Fix to use ec2 private dns name.