Use GoDaddy whois for .ca now.

This commit is contained in:
Elyrith 2013-10-02 20:13:31 -04:00
parent 58e813d162
commit 0999905ff0

View File

@ -23,7 +23,7 @@
# https://github.com/Elyrith/check_domain # # 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)" AUTHOR="See README. This version updated by Ryan Loudfoot (elyrith@gmail.com)"
PROGRAM=${0##*/} PROGRAM=${0##*/}
@ -118,7 +118,15 @@ else
whois="$whoispath/whois" whois="$whoispath/whois"
fi 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 # Calculate days until expiration
case "$domain" in case "$domain" in