IT.COM

Port 43 Whois Lookup

Spaceship Spaceship
Watch

RU

I'm out of domaining. ~RusselAccount Closed (Requested)
Impact
2,971
Whois lookups require Port 43. What type of connection do I need to use the whois service (outgoing or incoming)?
Please help
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
From the Unix command line:

telnet whois.tld.xxx 43
Enter domain name <ENTER>

Can be done in windows too.
 
2
•••
For a lookup program, best one is a python package: pythonwhois

Commands on Ubuntu Linux:
-----------------------------------------------
apt-get install python python-pip
pip install pythonwhois
-----------------------------------------------

Read here: cryto.net/pythonwhois
 
2
•••
You need an outgoing connection to port 43. Unless you are using a third-party service (who.is for example)
 
2
•••
Not all WHOIS servers are port 43, though most/practically-all are. rwhois.org.za uses port 4321.

You can do it in PHP with the fsockopen() function:

fsockopen("some.whois.server",43,$errno,$errstr,5);

More info from the PHP manual:

http://uk1.php.net/manual/en/function.fsockopen.php

I use the above method. I tried to do it with cURL which I normally like but couldn't get it to work properly with WHOIS servers.
 
1
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back