def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    names = revlookupall(name)
    if not names: return None
    return names[0]     # return shortest name
convenience routine for doing a reverse lookup of an address
python/DNS/lazy.py