Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to connect to your 3rd party service via Private EndPoint.
A simple Web search takes me to : Learn About Private Endpoints in Atlas
Wrt, "Since it is not native Azure PaaS resource, as per understanding we can not create Private DNS Zone in Azure for Atlas Mongo DB"
- This is incorrect.
- You can create a Private DNS Zone and link it to the VNET from which you are trying to connect to the PE (VNET of the source VMs)
- With Azure Native services, this is automated.
- In your scenario, this is manual and is doable.
- Please check the 3rd party documentation to arrive at the correct Domain name.
- From the document, I see, "pl-0-eastus2.uzgh6.mongodb.net" is being used.
So, you can either
- Create a Private DNS Zone named "mongodb.net" and add an A Record "pl-0-eastus2.uzgh6"
- or Private DNS Zone named "uzgh6.mongodb.net" and add an A Record "pl-0-eastus2"
- Both should resolve to the PE IP 10.0.0.4
- I am not sure which is the proper naming convention, please check with the third party.
Wrt Question 1.)
- I believe the previous points answers this.
- You can always create a Private DNS Zone and create your custom A records and make them resolve to the PE 's IP
Wrt Question 2.)
"Whether it is feasible to use 'conditional forwarder' configured in Onprem local DNS Server to forward that query to Azure DNS Private resolver service and whether Azure DNS private resolver service will be to get the private IP address of Mongo DB (Atlas) by again querying to Azure DNS."
- Yes.
- If everything is configured properly, this should work.
- A step by step how to can be seen in : Traffic flow for an on-premises DNS query
Hope this helps.
Cheers,
Kapil