Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Added support for .xxx domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
click0 committed Jun 26, 2019
1 parent 50f2fc9 commit ead6a67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion domain-check-2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# Revision History:
#
# Version 2.42
# Fixed support for .jp domain -- Tozapid <github.com/Tozapid/>
# Fixed support for .jp domain -- Tozapid <github.com/Tozapid>
# Added support for .xxx domain -- Tozapid <github.com/Tozapid>
#
# Version 2.41
# Added support for .stream domain -- https://github.com/hawkeye116477
Expand Down Expand Up @@ -568,6 +569,15 @@ check_domain_status()
tday=`echo ${tdomdate} | ${CUT} -d'-' -f3 | ${CUT} -d'T' -f1`
DOMAINDATE=`echo $tday-$tmonth-$tyear`

elif [ "${TLDTYPE}" == "xxx" ]; # for .xxx domain @tozapid 2019/06/21
then
tdomdate=`${AWK} '/Expiry Date:/ { print $4 }' ${WHOIS_TMP}`
tyear=`echo ${tdomdate} | ${CUT} -d'-' -f1`
tmon=`echo ${tdomdate} | ${CUT} -d'-' -f2`
tmonth=$(getmonth_number ${tmon})
tday=`echo ${tdomdate} | ${CUT} -d'-' -f3 | ${CUT} -d'T' -f1`
DOMAINDATE=`echo $tday-$tmonth-$tyear`

elif [ "${TLDTYPE}" == "md" ]; # for .md domain
then
tdomdate=`${AWK} '/Expiration date:/ { print $3 }' ${WHOIS_TMP}`
Expand Down
1 change: 1 addition & 0 deletions domain-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ nic.live
google.sk
nic.club
nic.stream
google.xxx

0 comments on commit ead6a67

Please sign in to comment.