Edit your /etc/hosts file to add the below. These are the hostnames to use in the connection string. 127.0.0.1 mongo0 127.0.0.1 mongo1 127.0.0.1 mongo2