using hostnames for mongo config