Hardening DNS (inverse) lookup + logging hostip

* renaming reverse_entry_for() → reverse_lookup()
* adding lookup()