def _get_mx_exchanges(domain):
try:<EOL><INDENT>answer = resolver.query(domain, '<STR_LIT>')<EOL>return [str(record.exchange).lower()[:-<NUM_LIT:1>] for record in answer]<EOL><DEDENT>except (resolver.NoAnswer, resolver.NoNameservers, resolver.NotAbsolute,<EOL>resolver.NoRootSOA, resolver.NXDOMAIN, resolver.Timeout) as error:<EOL><INDENT>LOGGER.error('<STR_LIT>', domain, error)<EOL>return []<EOL><DEDENT>
Fetch the MX records for the specified domain

    :param str domain: The domain to get the MX records for
    :rtype: list