summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+