summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortgroman <>2017-06-27 14:30:45 -0700
committertgroman <>2017-06-27 14:30:45 -0700
commita3dadd7907e15c064761bd350838b5dd5db8d13c (patch)
treead64fdcc61323f7c5a991914b69914d346f516a5
parenta12429a3387d205f849f9ca94d3dcb505008b3fc (diff)
downloadchkxpr-a3dadd7907e15c064761bd350838b5dd5db8d13c.tar
chkxpr-a3dadd7907e15c064761bd350838b5dd5db8d13c.tar.gz
chkxpr-a3dadd7907e15c064761bd350838b5dd5db8d13c.tar.lz
chkxpr-a3dadd7907e15c064761bd350838b5dd5db8d13c.tar.xz
chkxpr-a3dadd7907e15c064761bd350838b5dd5db8d13c.zip
added check.sh and domains.lst
-rwxr-xr-xcheck.sh3
-rwxr-xr-xdomains.lst11
2 files changed, 14 insertions, 0 deletions
diff --git a/check.sh b/check.sh
new file mode 100755
index 0000000..852c4a8
--- /dev/null
+++ b/check.sh
@@ -0,0 +1,3 @@
+cat domains.lst | sort | uniq | while IFS= read -r ip ; do
+ whois "$ip" | grep 'Domain\ Name:\|Expir' | grep -v Registrar | grep '\s\s'
+done
diff --git a/domains.lst b/domains.lst
new file mode 100755
index 0000000..b76724f
--- /dev/null
+++ b/domains.lst
@@ -0,0 +1,11 @@
+#Domains to be checked for expirary dates
+#should go in here.
+#Please appened a "." to the end of each
+#domain to avoid checking subdomains.
+#below is an example entry
+
+example.com.
+amazon.com.
+somesite.com
+someothersite.com
+