Up one level
README 1418 Aug 22 2002
TODO 250 Sep 27 2002
favicon.ico 20 May 9 06:28
filelist.html
hostlookup 2123 Jul 19 23:05
hostlookup.v0.1 475 Aug 6 2002
hostlookup.v0.2 2018 Aug 8 2002
hostlookup.v0.3 2123 Jul 19 23:05
index.html 4152 Oct 27 2004
internal-gopher-menu 29 May 9 06:28
internal-gopher-unknown 32 May 9 06:28

README

	Place hostlookup anywhere in your path.  ~/bin is a good choice
for non-root users, /usr/local/bin or /usr/bin if you're root.

	Some different ways to feed addresses into hostlookup:

$ echo 199.245.105.1 206.228.67.167 | hostlookup
199.245.105.1   shell.dhp.com.
206.228.67.167  slartibartfast.pa.net.

$ hostlookup 199.245.105.1 206.228.67.167
199.245.105.1   shell.dhp.com.
206.228.67.167  slartibartfast.pa.net.

$ ( echo 199.245.105.1 ; echo 206.228.67.167 ) | hostlookup
199.245.105.1   shell.dhp.com.
206.228.67.167  slartibartfast.pa.net.

$ echo -e '199.245.105.1\n206.228.67.167' | hostlookup
199.245.105.1   shell.dhp.com.
206.228.67.167  slartibartfast.pa.net.

$ cat some_file_containing_IPs | hostlookup
...

$ hostlookup
{type in addresses interactively}

	The output is in /etc/hosts format, so you can add the addresses
to it easily.

	To do reverse lookups on an entire class B or C:
$ hostlookup 127.0.0.
	or
$ hostlookup 127.0.


	How to look up all non-rfc1918 addresses in /etc/hosts:

cat /etc/hosts | \
 sed -e 's/#.*//' | \
 grep -v '^10\.' | \
 grep -v '^192\.168\.' | \
 grep -v '^172\.1[6-9]' | \
 grep -v '^172\.2[0-9]' | \
 grep -v '^172\.3[01]' | \
 grep -v '^\W*$' | \
 awk '{print $1}' | \
 hostlookup

	To get the hostnames of all the people who've visted your web
site:

cat /var/log/httpd/*_log | awk '{print $1}' | uniq | sort | uniq | hostlookup >/var/log/httpd/all-web-hosts



The files in this collection are part of William Stearns' software archive. If any of the links on this page do not work, you may be viewing an incomplete mirror. There is a complete list of the mirror sites at the starting page for this mirror and at the primary mirror.


Generated Thu Sep 13 21:16:17 EDT 2007 by htmlfilelist version 0.8.4