Leave a Comment

Comments

1
Written by:wheel
Posted on:March 21, 2006 at 1:21 pm

We’ve added some code to this that checks for whois every 15 seconds + some random increment between 0 and three seconds, as well as a router reset every 10 minutes. If you want that code, let me know.

2
Written by:admedia
Posted on:March 27, 2006 at 3:02 pm

It works really good!

Question: I leave error_reporting(E_ALL); on my pages because I am always a work in progress…

I get

Notice: Use of undefined constant STATUS_UNAVAILABLE – assumed ‘STATUS_UNAVAILABLE’ in class.Whois.php on line 76

should I define STATUS_UNAVAILABLE to get rid of it?

Thanks so much! This is really great.

3
Written by:Interested
Posted on:April 6, 2006 at 7:17 am

Hit, this script looks interesting but I’m a newbie php coder and don;t know who to use it?

I would like to make it work with this one:

IP:
Resolved:

I’d like to have either the IP address from the above, or this resolved domain name get parsed to just the tld part (i.e. 255-255-255-255.comcast.net = comcast.net) and then send it through your script.

Any help is appreciated +)

4
Written by:Interested
Posted on:April 6, 2006 at 7:18 am

oops, it didnt post the code i pasted. It is just code to echo the users ip address and the resolved address though.

5
Written by:Interested
Posted on:April 18, 2006 at 4:11 pm

Is there anybody here?

*crickets chirping*

6
Written by:Erde
Posted on:April 21, 2006 at 12:34 pm

That looks good… Thanks, I will try it :)

7
Written by:robert
Posted on:August 25, 2006 at 8:02 am

Its really cool… but how ever there are some domain which is valid but the program responce invalid

8
Written by:khawaja
Posted on:September 21, 2007 at 6:49 pm

its work realy realy good.

i want this in it that

i just got flage that domin is available or not then i can put my own message

if any one can guide me on this that great

thanks

and the code is realy help full

9
Written by:vicky
Posted on:November 23, 2007 at 5:20 pm

Hi,

Im glad to know about this script. my requirement is i got pool of ip’s about 10000 for which i would like to know the domain information.

All this bulk ip’s i want to run thru some script with which i can complete all IP domain information.

Will this script can help me in this regard.

If yes, can some one please let me know how to do it,im newbie and never worked on scripting.how can i point the ip’s in excel sheet to the script and where i need to do it.

Please help me out …advance thanks for every one.

10
Written by:Steve
Posted on:December 27, 2007 at 6:30 pm

Great code thanks.

11
Written by:Ray Ong
Posted on:December 30, 2007 at 1:24 am

Thanks, it works great.
Anyone know how can i make the code to support more domain?
for example,
.com.my
.com.tw

12
Written by:Raj
Posted on:January 24, 2008 at 1:31 pm

Hello,

I copied the script and saved as whois.php and uploaded on a sample free server supporting php but it did not work.

Can you send me a webpage containing the working copy which I can install and use on my web site.

Raj

13
Written by:Tagesgeld
Posted on:February 10, 2008 at 11:47 am

Thanks a lot – works perfect and saved me a lot of time!

14
Written by:syahzul
Posted on:February 18, 2008 at 9:43 am

Hi Mike,

Your code working even with .com.my country. I just adding new whois server and it works just as expected.

Thank you very much.

15
Written by:jtGraphic
Posted on:February 6, 2009 at 1:51 am

Just installed this code. Worked like a charm. Kudos.

16
Written by:chovy
Posted on:February 8, 2009 at 8:19 am

looks great, but unfortunately, all I ever get is:

“Sorry, the domain is not valid or not supported.”

I tried with domain=google.com

17
Written by:Festgeld
Posted on:March 17, 2009 at 11:34 pm

The script works really good. Can it used without any restrictions (copyrights, licence e.g.)?

18
Written by:deBassman
Posted on:March 18, 2009 at 9:47 am

hi there

interesting script – could you indicate how best to use it.

using:
echo getwhois(“gawker”,”com”);

I keep getting:
Sorry, the domain is not valid or not supported.

thks

frank

19
Written by:HYIPDefault
Posted on:March 30, 2009 at 10:35 pm

This script looks interesting, i should try..

Or any body know how to combine with smarty template?

Thanks

20
Written by:Joe
Posted on:April 23, 2009 at 12:37 am

Does not work for 2nd level domains.

e.g. .com.au always returns an error

21
Written by:Seth Long
Posted on:May 10, 2009 at 2:26 am

Thanks for the code snippet. I found it helpful.

22
Written by:TomTailor
Posted on:August 20, 2009 at 4:19 pm

Hi Mike!

I’d like to try your PHP Whois Script, but I can’t download the “class” file. (No rights?!)

Please help me!

Thank’s!

Tom

23
Written by:check domain - CodeCall Programming Forum
Posted on:November 3, 2009 at 1:12 am

[...] need to do a whois query to determine if a domain is registered or not. Here is a whois script: Mike Nott » PHP Whois Script __________________ CodeCall Blog | CodeCall Wiki | Write a Blog | Hire a Coder | About CodeCall [...]

24
Written by:khmerstyle
Posted on:December 17, 2009 at 10:30 pm

good script,

25
Written by:faizal
Posted on:January 18, 2010 at 9:11 am

I hav test your code, but the page cannot display.
Here what i’ve done:
1. create index.php
– i coppy all u’r code above and change
the 4th line from bottom with
$whois = getwhois(“google”, “com”);

2. create the whois.class.php file using the class file u provided.

Thanx in advance

26
Written by:Matt - Car Parking Games
Posted on:April 19, 2010 at 3:14 pm

This script is working fine. Just checked it. Thanks for sharing.

27
Written by:Abdelrahman
Posted on:May 17, 2010 at 8:59 am

Thanks for the great script.

It doesn’t work when I added the url into the request $domain = trim($_REQUEST['website.com']);

But it works fine when I removed it [$domain = 'website.com';]

You could also replace these lines:
echo ”

“;
echo $whois;
echo ”

“;
With these:
echo “”;
echo $whois;
echo “”;
It shows the results better.

28
Written by:Christopher Ross
Posted on:July 6, 2010 at 1:27 pm

Great piece of code! Thanks, I’ve been looking for a way to offer this on my site for newbs.

29
Written by:Matthias Jungbauer
Posted on:July 13, 2010 at 1:05 pm

I have just installed the script and it works for some domains.

For other I have to add the correct whois server first.

30
Written by:Matthias Jungbauer
Posted on:July 13, 2010 at 1:37 pm

add
whois.nic.it| in line servers
and
it=whois.nic.it
to query Italian Domains

add
whois.eu|
and
eu=whois.eu
to query eu domains
However whois.eu doesn’t provide much useful information.
I think only registrars may query this whois server.

31
Written by:wild
Posted on:July 16, 2010 at 8:37 am

this script is awesome thank !

32
Written by:Kreditrechner.com
Posted on:August 12, 2010 at 7:00 pm

Thanks for this script. It works fine and is easy to use in combination with wordpress as cms.

33
Written by:Josh
Posted on:October 25, 2010 at 4:25 am

Thankyou so much. I wasn’t able to fetch the xml whois file from networksolutions with ajax, so after some searching I found this php class. thanks!