perl check domain register ?

can i using to perl to check
the domain is register or not ?
like ping ?

any reference site ?
thank
loongAsked:
Who is Participating?
 
TYoungConnect With a Mentor Commented:
Open a socket to: whois.internic.net
Enter the domain name and send a \n.

It will come back with NO MATCH FOR... OR the information on the taken domain.
0
 
vaksCommented:
This might have the result you are looking for:

$domain = 'yahoo.com';
if (gethostbyname($domain))
{
#found
}
else
{
#not found
}


Regards
/Vaks
0
 
loongAuthor Commented:
i mean something about nslookup
whois or ping ?


like what internic doing ..

0
 
loongAuthor Commented:
i mean something about nslookup
whois or ping ?


like what internic doing ..

0
All Courses

From novice to tech pro — start learning today.