i want make server ip mapping to localhost? should i vim /etc/hosts 127.0.0.1 localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.51.101.35 iZ25kpavw8zZ localhost 123.442.23
i want to do a reverse name lookup to compare the IP (123.442.23) and the hostname (localhost) to determine if they are the same machine.
how to do it?