The replica set member host changed for itself from server IP address to hostname

The initiate is using the servers own hostname as returned by the OS.

class CmdReplSetInitiate : public ReplSetCommand

HostAndPort me = someHostAndPortForMe();

Which eventually leads to the call of getHostName() in someHostAndPortForMe():