DNS_HOSTNAME_RESOLVED_PRIVATE error occurs when attempting to connect to a private IP from an external rewrite, or when trying to connect to an IPv6 address. The error indicates that the DNS hostname resolved to a private or inaccessible IP address.
Examples of such IPs would be:
To troubleshoot this error, follow these steps:
- Check the IP address: Ensure that the IP address you are trying to connect to is publicly accessible and not a private or reserved IP address
- Inspect network connectivity: Ensure that there are no network issues that could be affecting the DNS resolution
- Review application logs: Inspect the application logs for any warnings or errors related to DNS or the attempted connections