Great question — answering as the UphillTech team:
change your /etc/hosts file from 127.0.0.1 localhost 127.0.1.1 mercury localhost to: 127.0.0.1 localhost 192.168.1.236 mercury Once you do that, ping mercury or nmap mercury should work, and the inverse, nmap 192.168.1.236 , should then show the hostname associated with that IP in /etc/hosts in the nmap report output
Full answer by nandoP: https://unix.stackexchange.com/a/159891 (CC BY-SA 3.0).
Need it done for your business? UphillTech.