Fix retrieval of IP addresses for a/mx mechanisms.