You need to set EOS_MGM_MASTER1/2 to the FQDN of the machine and not the IP address and then restart the MGM daemon.