How to resolve "Error resolving address" with a proxy in MIP SDK for Linux
We are using MIP SDK 1.12.61 version with a C++ application on CentOS 7 to decrypt RMS-protected files and labels, but we are encountering "Error resolving address" messages in the logs. We have already addressed the firewall rules and port requirements, and added proxy support to the application using the http_proxy environment variable.
However, we noticed that the MIP application is performing DNS requests to the configured DNS server instead of resolving *.protection.outlook.com with the proxy, which is needed as our DNS server can only resolve internal URLs for security purposes. We would like to know if there is an option or configuration in the MIP SDK APIs to resolve the Microsoft URL *.protection.outlook.com with the configured proxy.
Error message from mip sdk logs.
Error 2024-03-26 13:55:04.152 policy_profile_impl.cpp:504 test_app (12226) "Failed API call: profile_add_engine_async Failed with: [NetworkError: 'Failed to send HTTP request with error code 'generic:1' Inner exception: [http_exception: 'Error resolving address'], NetworkError.Category=Unknown, HttpRequest.SanitizedUrl=https://dataservice.protection.outlook.com/PsorWebService/v1/ClientSyncFile/MipPolicies, HttpRequest.Id={4DF422BE-821F-41C6-9C97-436CDDCFEF2F}, CorrelationId=069867da-61fb-4c50-aa60-0369a9bc2531, CorrelationId.Description=PolicyProfile']" virtual std::shared_ptr