def mxlookup(name):
    """
    convenience routine for doing an MX lookup of a name. returns a
    sorted list of (preference, mail exchanger) records
    """
    l = dnslookup(name, qtype = 'mx')
    l.sort()
    return l

    convenience routine for doing an MX lookup of a name. returns a
    sorted list of (preference, mail exchanger) records
    
python/DNS/lazy.py