示例#1
0
文件: emails.py 项目: znanl/SPF
def get_mx_record(domain):
    hosts = Dns.mx(domain)
    if (hosts):
        return hosts[0]
    else:
        return None
示例#2
0
文件: emails.py 项目: DarthRa/SPF
def get_mx_record(domain):
    hosts = Dns.mx(domain)
    if (hosts):
        return hosts[0]
    else:
        return None
示例#3
0
文件: emails.py 项目: znanl/SPF
def get_mx_records(domain):
    hosts = Dns.mx(domain)
    for rdata in records:
        if (validate_mx((str(rdata.exchange))[:-1], domain)):
            hosts.append((str(rdata.exchange))[:-1])
    return hosts
示例#4
0
文件: emails.py 项目: DarthRa/SPF
def get_mx_records(domain):
    hosts = Dns.mx(domain)
    for rdata in records:
        if (validate_mx((str(rdata.exchange))[:-1], domain)):
            hosts.append((str(rdata.exchange))[:-1])
    return hosts