I configured replica set in such a way that the the primary and secondary are two different VMs so that i could able to get My API’s hit to the secondary to get the results form it so that it won’t affect the primary and the data which i have is always upto date.
Now the issue is the secondary replica set connection URL, I could able to connect the same credentials form tools such and robo 3t but when it comes to connection string placement it is showing the following error “getaddrinfo ENOTFOUND mongo.explorer.replica.#####.com”. and couldn’t able to access the same URL or the credentials from Mongo compass.
It would be very helpful if i get a solution to solve this issue.and may i know the reason why the mongo secondary replica i could able to connect through robo 3t and not via mongo compass.