[conspire] Public Interest Registry uses rate-limited whois on .org: Grrr!

Rick Moen rick at linuxmafia.com
Mon Jul 2 21:25:06 PDT 2007


Quoting Rick Moen (rick at linuxmafia.com):

> You know, for my own purposes, I might just slip some "sleep 20" lines
> into your script.  Or something.  Maybe rearrange the
> /usr/local/share/domains file to make the .org entries be spaced out as
> widely as possible.
> 
> This is really annoying, anyway:  Six queries a minute (e.g.) is hardly
> a DoS attack.

OK, I've worked around the annoyance, by splitting the domains list into
two files -- everything else, and .org domains -- and then using a
domain-check.slow variant of your script (with "sleep 20;" after the
whois call) to process the latter list.

Seems to work.

:r /etc/cron.weekly/domain-check


#! /bin/sh

# domain-check	Cron script to check domain expirations.
#
#		This is a pitifully primitive cron script to invoke domain-check
#		by Ben Okopnik ( ben at linuxgazette.net ) against a list
#		of domains in /usr/local/share.  A better replacement
#		would notify a list of appropriate persons for each
#		domain, rather than just Rick Moen.
#
#		Written by Rick Moen (rick at linuxmafia.com)
#		$Id: cron.weekly,v 1.01 2007/07/02 21:03:05 rick


test -e /usr/local/share/domains || exit 0
test -x /usr/local/bin/domain-check || exit 0

set -e

/usr/local/bin/domain-check -e=rick at linuxmafia.com  -x=90 -F=/usr/local/share/domains
/usr/local/bin/domain-check.slow -e=rick at linuxmafia.com  -x=90 -F=/usr/local/share/domains-org




More information about the conspire mailing list