1,7 → 1,7 |
#!/usr/bin/perl |
|
# |
# VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
# VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois) |
# Subprogram: bz TLD whois |
# |
# (c) 2015 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
15,7 → 15,7 |
|
use FindBin; |
use lib "$FindBin::RealBin/../../lib/"; |
use GWhoIs::Core; |
use VGWhoIs::Core; |
|
if (defined $ARGV[0]) { |
$_ = join(' ', @ARGV); |
29,7 → 29,7 |
|
my $host = "http://www.belizenic.bz/cgi-bin/Registrar_test?action=whois&action2=whois&domain="; # TODO: https? |
|
my ($protocol, $hostname) = GWhoIs::Utils::splitProtocolHost($host); |
my ($protocol, $hostname) = VGWhoIs::Utils::splitProtocolHost($host); |
|
#print "Querying $hostname with $protocol.\n"; |
|
37,7 → 37,7 |
$hexstring = $query; |
$hexstring =~ s/./sprintf("%02x",ord("$&"))/eg; |
|
my ($text, $exitcode) = GWhoIs::Core::doquery($query,'cgi',$host.$hexstring,''); |
my ($text, $exitcode) = VGWhoIs::Core::doquery($query,'cgi',$host.$hexstring,''); |
|
if ($exitcode) { |
# print STDERR "Query to web server failed.\n"; |