Keywords: MEAN - AWS - Technical issue - Other
I'm trying to connect to mongodb replica set, from my spring-boot application, using the following connection string:
but we get the following error:
com.mongodb.MongoSocketException: No such host is known (ip-188.8.131.52)
As soon as I change the connection string, removing "?replicaSet=rs0", the connection works correctly.
I already tried to change the "etc/hosts" file, but the EC2 doesn't take the updates. Neither after reboot.
I confirm Mongo replication works correctly from database PoW.
How can I solve the issue?
Thanks in advance,