2022/05/12 12:16:11 Error create client object : error parsing uri: lookup cluster0.ckk7d.mongodb.net on 127.0.0.53:53: cannot unmarshal DNS message, Please help. --net=host allow you to connect with internet; either this cause by docker or some technical issue
The above error message could possibly be caused by to what is detailed on https://jira.mongodb.org/browse/GODRIVER-829. More specifically, I would refer to the following comment on March 15 which provides more information on the possible causes and a solution / workaround.
If you still require additional assistance, please:
Replace the DNS Seed List Connection Format (beginning with "mongodb+srv://") with the Standard Connection String Format (beginning with "mongodb://") and advise if the error message is still present. Please provide the full error message once this is attempted.
Advise the MongoDB Go driver version
Advise the Go language version
Attempt to connect from outside the docker environment using the same connection string and advise if you are able to connect.