def get_txt_Milter_dns(name):
    # Older pydns releases don't like a trailing dot.
    if name.endswith('.'):
        name = name[:-1]
    sess = Session()
    a = sess.dns(name,'TXT')
    if a: return b''.join(a[0])
    return None

# Prefer dnspython if it's there, otherwise use pydns.
Return a TXT record associated with a DNS name.
dataset/ETHPy150Open Flolagale/mailin/python/dkim/dnsplug.py/get_txt_Milter_dns