I have been using Mongo DB Cluster for some data analysis (Mongo DB version 2.4.5).
My configuration is as follows:
1) Node1 - mongoconfig server, mongod shard
2) Node2 - mongoconfig server, mongod shard
3) Node3 - mongoconfig server, mongos
4) Node4 - mongos
All the nodes above have a unique hostname at OS level (output of shell command "hostname")
Is it correct to use IP addresses instead of hostnames while configuring this Mongo DB cluster. There are issues that I am facing due to DNS server and I would prefer to configure the entire cluster (addresses of config servers, shards, etc.) using IP addresses instead of hostnames.
Is this the correct way to configure the cluster or will it cause any issues?