HNAME: Find canonical host name and IP address

Overview

HNAME is a command-line tool that enables users to view IP address and fully qualified host name.
Type HNAME without any parameter for an help screen.

A script example, used to quickly dump web site visitors hostname (note the -- parameter which instructs hname to read IP addresses from stdin) :

tail -150 access.log|awk "{print($1)}"|sort|uniq|hname --
Please note: This tool was previously released as "hostname.exe", which is a very common name in NTFS/FAT namespace. I renamed it to avoid any problem with the MS hostname.exe.

> Download hname.zip (v 1.0.1 / 2003-12-09 / 4 KB)

home | previous | next