IP2NAME(LOCAL) UNIX Programmer's Manual IP2NAME(LOCAL) NAME ip2name - convert IP addresses to their DNS names SYNOPSIS ip2name [-i|-I] [-f] [-g] [files|IP] DESCRIPTION If ip2name is given a single IP address on the command line, it will look it up and emit the corresponding name on stan- dard output. In this mode, the exit status is 0 if a name was found and 1 otherwise. If no IP address is given on the command line, arguments are interpreted as filenames to process, or if there are no filenames, standard input is processed. File processing consists of reading lines, augmenting them if possible as described below, and writing them to standard output. Augmentation consists of searching for sequences which look like IP addresses, and either appending the DNS name (if found) to the end of the line or replacing it in- situ if the -i or -I flag is given. In order to keep the format of the input correct, the -i form of in-situ replacement will truncate a DNS name if it doesn't fit in the space used by the IP address (and its trailing spaces) however the -I form will do no such trunca- tion and will grow the line if necessary. Only the first IP address on each line will be recognized unless the -g flag is given. During file processing, unless -f is given, ".washington.edu" is stripped off the end of DNS names before they are put in a line. BUGS For backward compatibility, .washington.edu is not stripped in the mode where the IP address is given on the command line. AUTHOR Corey Satten corey @ cac.washington.edu