Add reverse_lookup() function which does a more proper (verified) DNS reverse lookup. (Code copied from OpenSSH instead of redoing it poorly.)