5, September 2008

php whois with .co.uk domains - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  PHP Whois script (Moderator: Olaf)
Topic: php whois with .co.uk domains
« previous next »
Pages: [1] Print

Author Topic: php whois with .co.uk domains  (Read 2496 times)
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« on: Sep 21, 2006, 03:51:06 PM »

Hi,

I've just been playing with your script and was wondering if it'd be possible to add a .co.uk option?

Would this be easy to add?

Thanks
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 21, 2006, 03:58:43 PM »

Hello,

what is the co.uk whois server?


Last blog : Is your website is down? Know before your visitors do!
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #2 on: Sep 21, 2006, 04:02:49 PM »

I think it's http://www.nominet.org.uk/ Visit through proxy but I'm not sure, I know they handle the registration of domains

...

I've just checked their site and they have a whois search which leads to this address

http://webwhois.nic.uk/cgi-bin/whois.cgi?query=google.co.uk Visit through proxy
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #3 on: Sep 21, 2006, 04:08:27 PM »

Hi again,

I've played around a bit and come up with this

$servers['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "Not found";
$servers['co.uk']['param'] = "";

This seems to work (at least under linux, I've not tried it on windows).

Thanks
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 21, 2006, 04:15:38 PM »

Hi again,

I've played around a bit and come up with this

$servers['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "Not found";
$servers['co.uk']['param'] = "";

This seems to work (at least under linux, I've not tried it on windows).

Thanks
it's good to share this here...(this code above needs to be added to the file "server_list.php")


Last blog : Is your website is down? Know before your visitors do!
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #5 on: Sep 21, 2006, 05:13:28 PM »

Just added another one incase anyone is intrested in 'ca' domains as well

$servers['ca']['address'] = "whois.cira.ca";
$servers['ca']['free'] = "Not found";
$servers['ca']['param'] = "";
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Sep 21, 2006, 08:34:16 PM »

Just added another one incase anyone is intrested in 'ca' domains as well

$servers['ca']['address'] = "whois.cira.ca";
$servers['ca']['free'] = "Not found";
$servers['ca']['param'] = "";
is "ca" Canada?


Last blog : Is your website is down? Know before your visitors do!
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #7 on: Sep 22, 2006, 10:37:54 AM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #8 on: Sep 26, 2006, 04:52:25 PM »

Hi,
I have just downloaded your whois program..... thanks a lot for it...
I was only wondering how to add it to search for .in "India" domains.
I am not familiar with the server address as well
If you could please tell me how I can get those details i will try.
Thanks in advance

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Sep 26, 2006, 05:37:48 PM »

Hi,
I have just downloaded your whois program..... thanks a lot for it...
I was only wondering how to add it to search for .in "India" domains.
I am not familiar with the server address as well
If you could please tell me how I can get those details i will try.
Thanks in advance



hello vin,

adding new tld's is easy if you know the whois server address, but I didn't know this address... I think a local knows this much better... (you can ask me a lot about dutch domain names Wink)


Last blog : Is your website is down? Know before your visitors do!
Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #10 on: Sep 26, 2006, 05:41:38 PM »

Thanks a lot olaf,
Really appreciate your quick reply.
I will try to find out the whois server and then if I have problems will ask you.

Thanks once again
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Sep 26, 2006, 08:25:52 PM »

Thanks a lot olaf,
Really appreciate your quick reply.
I will try to find out the whois server and then if I have problems will ask you.

Thanks once again


try to search google for "whois .in"


Last blog : Is your website is down? Know before your visitors do!
My name is Bong, James Bong
*
Posts: 12
76 credits
Members referred : 0


« Reply #12 on: Sep 29, 2006, 04:32:36 PM »

$servers['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "Not found";
$servers['co.uk']['param'] = "";

Doesn't work for me under linux.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: Sep 29, 2006, 04:41:16 PM »

$servers['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "Not found";
$servers['co.uk']['param'] = "";

Doesn't work for me under linux.

how about other requests for other tld's?

if you switch to the "win" the class will work also on linux, but the whois query is done with fsockopen


Last blog : Is your website is down? Know before your visitors do!
My name is Bong, James Bong
*
Posts: 12
76 credits
Members referred : 0


« Reply #14 on: Sep 29, 2006, 04:45:19 PM »

Switching to win in the class doesn's work to, the class always says the domain is registered.
Here is my multiple output for a none existing domain:

8723487sd7c9asd.nl is vrij.

8723487sd7c9asd.com is vrij.

8723487sd7c9asd.net is vrij.

8723487sd7c9asd.eu is vrij.

8723487sd7c9asd.org is vrij.

8723487sd7c9asd.be is vrij.

8723487sd7c9asd.de is vrij.

8723487sd7c9asd.fr is vrij.

8723487sd7c9asd.co.uk is al geregistreerd. - Details

8723487sd7c9asd.us is vrij.

8723487sd7c9asd.biz is vrij.

8723487sd7c9asd.info is vrij.

8723487sd7c9asd.name is vrij.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Sep 29, 2006, 04:51:15 PM »

I tried it with the snippet from the other thread and there is something wrong...

this is code should work:
Code:
<?php
$servers
['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "No match";
$servers['co.uk']['param'] = "";


Last blog : Is your website is down? Know before your visitors do!
My name is Bong, James Bong
*
Posts: 12
76 credits
Members referred : 0


« Reply #16 on: Sep 29, 2006, 04:53:00 PM »

I tried it with the snippet from the other thread and there is something wrong...

this is code should work:
Code:
<?php
$servers
['co.uk']['address'] = "whois.nic.uk";
$servers['co.uk']['free'] = "No match";
$servers['co.uk']['param'] = "";


Yes, it works!
Thanks allot!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4198
Tags : php google domains whois snippets Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  PHP Whois script (Moderator: Olaf)
Topic: php whois with .co.uk domains
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep 05, 2008, 06:13:23 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.293
Total Topics: 7.476
Total Members: 3.899
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: speedy5044

28 Guests, 4 Users online :

13 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.