From 0999905ff046357a5f0d8c1ac8d8cf85a870020f Mon Sep 17 00:00:00 2001 From: Elyrith Date: Wed, 2 Oct 2013 20:13:31 -0400 Subject: [PATCH] Use GoDaddy whois for .ca now. --- check_domain | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/check_domain b/check_domain index cb90448..8fb2884 100755 --- a/check_domain +++ b/check_domain @@ -23,7 +23,7 @@ # https://github.com/Elyrith/check_domain # ############################################################################### -VERSION="Version 0.92" +VERSION="Version 0.93" AUTHOR="See README. This version updated by Ryan Loudfoot (elyrith@gmail.com)" PROGRAM=${0##*/} @@ -118,7 +118,15 @@ else whois="$whoispath/whois" fi -out=$($whois $domain) +# Use GoDaddy if domain is a .ca +case "$domain" in +*.ca) + out=$($whois -h whois.godaddy.com $domain) + ;; +*) + out=$($whois $domain) + ;; +esac # Calculate days until expiration case "$domain" in