[sf-lug] Domain expiration (was: phishy phishy phish Re: Fwd: SF-LUG.COM [PHISH])
Rick Moen
rick at linuxmafia.com
Wed Jul 29 21:26:53 PDT 2020
I wrote:
> So, for example, if worried for any reason about the renewal/experation
> status of domain sf-lug.com, the sensible thing to do is check
> the public whois data.
Come to think if it -- y'know -- you could set up a recurring cron job
to check for you. Example cron job below relies on an earlier Perl tool
called domain-check, but Jesse Monroy's d-check, which is actually
(somewhat) maintained, is a deliberately compatible replacement Perl
script.
The point is, if you use something like this to get a weekly report
on which domains out of a set you care about are getting close to
expiration, you'd immediately know that something like Bobbie's phishing
fraud e-mail are bullhockey _without_ needing to manually check whois.
https://github.com/jessemonroy650/d-check
http://linuxmafia.com/pub/linux/network/domains-test
: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 lists
# 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
set -o errexit #aka "set -e": exit if any line returns non-true value
set -o nounset #aka "set -u": exit upon finding an uninitialised variable
test -e /usr/local/share/domains || exit 0
test -x /usr/local/bin/domain-check || exit 0
/usr/local/bin/domain-check -w -e=rick at linuxmafia.com -x=90 -F=/usr/local/share/domains
More information about the sf-lug
mailing list