[Jim's Web Nook | Software | hostinfo]
Here's what's here:
Hostinfo is a utility for looking up hostnames and IP(v4) addresses. Hostinfo uses the gethostbyname(3) and getaddrbyname(3) function calls, which means it tells you what your operating system thinks rather than simply telling you what you already know your DNS server says.
If you don't know what most or all of the above paragraph means, you probably don't need this utility.
Hostinfo differs from other host-lookup utilities in the following ways:
Hostinfo's output is in a succinct, consistent format, easily read and understood by both humans and other programs. Hostinfo also has options for displaying only the information you ask for (hostname, IP address[es], or host aliases) without any frills; hence, it's useful as a shell script utility without having to use awk or some other pattern-matching language.
Hostinfo uses the regular "nethost" function calls for looking up hosts, and hence tells you what your operating system really thinks.
Hostinfo happily displays IP addresses in hexadecimal or backslash-octal notation if you request it. If you warn hostinfo in advance, it will even try to interpret IP addresses you give to it in hexadecimal or backslash-octal notation as well.
Hostinfo comes with no documentation other than its extensive, clearly written, superior quality builtin help. There are no building or installation instructions, albeit the accompanying clearly written, easy-to-use Makefile makes building and installing hostinfo from source a snap.
Hostinfo works for me with a wide variety of Linux systems. If it doesn't work for you, consider letting me know what broke and how you fixed it.
Caveat utilisor.
The current version is 2.2, dated (just barely) 2000-Jul-20.
Hostinfo ships with a very liberal license.
Hostinfo is available right here:
The following RPM packages are available as well [Red Hat Linux 5.2, glibc-2.0.7, rpm-3.0.3]:
Versions 1.0 and 1.1 were never publically released.
[Jim's Web Nook | Software | hostinfo]