#!/usr/bin/perl -w # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # #NAME # hstlkup - Look up a host's address, with multiple TLDs # #SYNOPSIS # hstlkup [file].. # #REQUIRES # #DESCRIPTION # #OPTIONS # #EXAMPLES # #FILES # #BUGS # #SEE ALSO # #AUTHOR # John Chambers # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # $| = 1; $exitstat = 0; ($P = $0) =~ s".*/""; $V = $ENV{"V_$P"} || $ENV{"D_$P"} || 1; # Verbose level. for $h (@ARGV) { for $d ('com', 'org', 'net', 'edu') { ($ipad = `ipad $h.$d`) =~ s/[\r\s]*$//; print "$ipad\t$h.$d\n"; } } print "$P: Exit with status $exitstat.\n" if $V>1; exit $exitstat; # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #