You might need to look at what happened with the rs.initiate() the localhost may have been introduced there.
rs.conf() will dump out the current configuration. You can then use rs.reconfigure() with a new configuration document to change the member hostname if it is incorrect.