Skip to content

Commit

Permalink
Fixed support for .md domain.
Browse files Browse the repository at this point in the history
The owner of the .md zone hid the data of the registrar from whois server.

Signed-off-by: vlad11 <[email protected]>
  • Loading branch information
click0 committed Jun 3, 2023
1 parent 266610a commit 820dcc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 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.67
# Last Updated: 28-Feb-2023
# Current Version: 2.68
# Last Updated: 06-Jun-2023
#
# Revision History:
#
# Version 2.68
# Fixed support for .md domain -- Vladislav V. Prodan <github.com/click0>
#
# Version 2.67
# Added support for sn/.st/.th/.co.th/.by/.ps TLDs. -- Vladislav V. Prodan <github.com/click0>
#
Expand Down Expand Up @@ -601,6 +604,7 @@ check_domain_status()
elif [ "${TLDTYPE}" == "md" ];
then
REGISTRAR=$(${AWK} -F: '/Registrar:/ && $2 != "" { REGISTRAR=substr($2,7,46) } END { print REGISTRAR }' ${WHOIS_TMP})
[ "x${REGISTRAR}" = "x" ] && REGISTRAR="Hidden"
elif [ "${TLDTYPE}" == "info" ];
then
REGISTRAR=`${AWK} -F: '/Registrar:/ && $2 != "" { REGISTRAR=substr($2,2,17) } END { print REGISTRAR }' ${WHOIS_TMP}`
Expand Down

0 comments on commit 820dcc4

Please sign in to comment.