Skip to content

Commit

Permalink
Fixed support for .sk/.bm TLDs.
Browse files Browse the repository at this point in the history
Fixed the list of test domains for (automated) testing.

Signed-off-by: vlad11 <[email protected]>
  • Loading branch information
click0 committed Mar 19, 2024
1 parent 820dcc4 commit b876597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 8 additions & 6 deletions domain-check-2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
# Author: Matty < matty91 at gmail dot com >
# Co-author: Vladislav V. Prodan <github.com/click0>
#
# Current Version: 2.68
# Last Updated: 06-Jun-2023
# Current Version: 2.69
# Last Updated: 19-Mar-2024
#
# Revision History:
#
# Version 2.69
# Fixed support for .sk/.bm TLDs. -- Vladyslav V. Prodan <github.com/click0>
#
# Version 2.68
# Fixed support for .md domain -- Vladislav V. Prodan <github.com/click0>
#
Expand Down Expand Up @@ -554,7 +557,7 @@ check_domain_status()
if [ -n "${WHOIS_SERVER}" ];
then
# section for TLDTYPE
[ "${TLDTYPE}" == "bm" ] && WHS="whois.bermudanic.bm";
[ "${TLDTYPE}" == "bm" ] && WHS="whois.nic.bm";
[ "${TLDTYPE}" == "ps" ] && WHS="whois.pnina.ps";

# section for SUBTLDTYPE
Expand Down Expand Up @@ -696,7 +699,7 @@ check_domain_status()
REGISTRAR=$(${AWK} '/registrant:/ && $0 != "" { print $2 }' ${WHOIS_TMP})
elif [ "${TLDTYPE}" == "sk" ]; # added by @hawkeye116477 20190603
then
REGISTRAR=$(${AWK} '/Registrar:/ && $0 != "" { print $2; exit }' ${WHOIS_TMP})
REGISTRAR=$(${AWK} -F: '/^Registrar:/ && $0 != "" { getline; getline; sub(/^[ \t]+/,"",$2); print $2 }' ${WHOIS_TMP})
elif [ "${SUBTLDTYPE}" == "com.br" ];
then
REGISTRAR=$(${AWK} -F':' '/owner:/ && $0 != "" { print $2 }' ${WHOIS_TMP} | ${SED} -e 's/[[:space:]\t]*// ;')
Expand Down Expand Up @@ -735,8 +738,7 @@ check_domain_status()
REGISTRAR=`${AWK} -F: '/Owner contact:/ { getline; getline; REGISTRAR=substr($2,10,40) } END { print REGISTRAR }' ${WHOIS_TMP}`
elif [ "${TLDTYPE}" == "bm" ];
then
REGISTRAR="$(${AWK} -F'Registrar: ' '/Registrar:/ && $2 != "" { print $2 }' ${WHOIS_TMP} |
${AWK} '/http:/ { print substr($1,8,40) } /https:/ { print substr($1,9,40) }' | ${TR} -d "/")"
REGISTRAR="$(${AWK} -F': ' '/Admin Organization:/ && $2 != "" { print $2 }' ${WHOIS_TMP})"
elif [ "${TLDTYPE}" == "ee" ];
then
REGISTRAR=`${AWK} -F: '/Registrant:/ && $0 != "" { getline; sub(/^[ \t]+/,"",$2); print $2 }' ${WHOIS_TMP}`
Expand Down
3 changes: 1 addition & 2 deletions domain-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ google.blog
linux.cafe
google.md
google.co
dotmobi.mobi
google.mobi
google.wf
google.me
google.us
Expand Down Expand Up @@ -67,7 +67,6 @@ google.xxx
google.id
nic.today
mail.game
google.sk
dream.team
google.app
google.host
Expand Down

0 comments on commit b876597

Please sign in to comment.