Since DNSSEC is not available at the OS level, I think the best option you have is to protect your application by checking your SSL server more carefully than the OS, naturally. See this question for more details. I would recommend implementing the CA certificate that you expect to receive in your application, and compare it by bytes with the root of the trust chain.
This is called certificate attaching .
source share