I am witnessing something strange.
I have an app, written in GO but I am not sure this is relevant, that is using Mongo Atlas. The app can happily connect to the DB when I am using my home wireless.
If I change connection and I use the connectivity provided by my phone, the same app can not connect any more to the same database.
The code that fails is this
connString := "mongodb+srv://my_usr:my_pwd@my_cluster.mongodb.net/scopone?retryWrites=true&w=majority"
clientOptions := options.Client().ApplyURI(connString)
client, err := mongo.NewClient(clientOptions)
if err != nil {
log.Fatal("Error creating Mongo Client", err)
}
An the error I get is
error parsing uri: lookup my_cluster.mongodb.net on 172.20.10.1:53: cannot unmarshal DNS message
Any clue?