Cannot import data due to DNS error

Hi there,

As I’m on my business trip I needed to set up the environment on my laptop. Everything seems to work except to mongorestore command. My connection to atlas server works on both application and mongo shell. But when I want to import data it says: error parsing command line options:

error parsing uri (mongodb+srv://m220student:m220password@<cluster_uri>/test?retryWrites=true): lookup <cluster_uri> on cannot unmarshal DNS message

Any advices?

The string

must be replaced by the actual URI of your cluster.

1 Like