예제 #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