perl 域名查询程序
use IO::Socket::INET;
="ourstory.com.cn";
= 'whois.cnnic.net.cn';
= IO::Socket::INET->new(":43") || die "fail";
print "\n";
@ret=<>;
print "@ret";
use IO::Socket::INET;
="ourstory.com.cn";
= 'whois.cnnic.net.cn';
= IO::Socket::INET->new(":43") || die "fail";
print "\n";
@ret=<>;
print "@ret";