Adds ability to use ipaddress instead of fqdn in replicaset

Signed-off-by: Christophe Courtaut <christophe.courtaut@photobox.com>