Reply
Domain finder
Old 04-24-2006, 06:02 AM Domain finder
coldturkey's Avatar
Extreme Talker

Posts: 194
Name: Rachel
Location: Spain
I creating a website and I would like to put on it the option for people to see if a domain is avalible, like you get when you regeister a domain it has to be checked to see if its in use or not.
What langue can i do this in?
Many thanks
Rachel
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
When You Register, These Ads Go Away!
Old 04-24-2006, 07:20 AM Domain finder - PHP??
coldturkey's Avatar
Extreme Talker

Posts: 194
Name: Rachel
Location: Spain
I am creating a website and I would like to put on it the option for people to see if a domain is avalible, like you get when you regeister a domain it has to be checked to see if its in use or not.
Can i do this in php?? If so how??
Many thanks
Rachel
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 04-24-2006, 12:24 PM Re: Domain finder
Novice Talker

Posts: 10
Location: Doncaster, UK
There is a Whois Lookup available online, I've just got to find it.
robterrace is offline
Reply With Quote
View Public Profile Visit robterrace's homepage!
 
Old 04-24-2006, 05:41 PM Re: Domain finder
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
Hmm. I was looking for something like this too.
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!

Last edited by Silent77 : 04-24-2006 at 05:44 PM.
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 04-24-2006, 09:53 PM Re: Domain finder
carterdea's Avatar
Ultra Talker

Posts: 304
Location: az
This could be way wrong but maybe verisign.com
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-25-2006, 09:35 AM Re: Domain finder
Novice Talker

Posts: 6
I think what you need as an API which you can code directly into your own website. This would then speak to the supplier and return the results. You can usually arrange this with your usual hosting/domain supplier
__________________
www.tonicdesigns.co.uk
Intelligent Solutions that work
tony@tonicdesigns.co.uk
tonic is offline
Reply With Quote
View Public Profile Visit tonic's homepage!
 
Old 04-25-2006, 10:47 AM Re: Domain finder
coldturkey's Avatar
Extreme Talker

Posts: 194
Name: Rachel
Location: Spain
Quote:
Originally Posted by tonic
I think what you need as an API which you can code directly into your own website. This would then speak to the supplier and return the results. You can usually arrange this with your usual hosting/domain supplier
Thanks i was hoping it would be something i could coad in tho and cheak it - like in php you can verify email address - i dont know something like that.

I will keep looking and post it when ive found the answer!!
Thanks
__________________
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 04-25-2006, 07:24 PM Re: Domain finder
Novice Talker

Posts: 10
Location: Doncaster, UK
There is an ASP version on the web, available http://webwizguide.com/asp/sample_sc...pplication.asp

Hope This Helps.
robterrace is offline
Reply With Quote
View Public Profile Visit robterrace's homepage!
 
Old 04-25-2006, 08:00 PM Re: Domain finder
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Here's a good one I've used in the past:
http://www.ep-dev.com/scripts-4.php
Anacrusis is offline
Reply With Quote
View Public Profile Visit Anacrusis's homepage!
 
Old 04-26-2006, 10:52 AM Re: Domain finder - PHP??
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
PHP Code:
class whois
{
    const 
timeout 30;
    const 
whoishost 'whois.internic.net';
    
    public static function 
lookup($domain){

       
$result "";
       
$errno 0;
       
$errstr='';
    
       
$fd fsockopen(whois::whoishost,43$errno$errstrwhois::timeout);

       if (
$fd){
             
fputs($fd$domain."\015\012");
           while (!
feof($fd))    {
            
$result .= fgets($fd,128) . "<br />";
           }
           
fclose($fd);
        }
         return 
$result;
     }
}

echo 
whois::lookup('search-for.com'); 
This will dump some info for you reguarding the domin in question. If it is registered it will state that it is but if not you get a clear message stating so.

I.E

No match for "yoursite.com"

So to be precise and just grab a yes or no you could comment out " echo whois::lookup('search-for.com'); " and go for a more usable

PHP Code:
$domain 'search-for.com';
$result whois::lookup($domain);  

if(
strstr($result"No match")){
       echo 
$domain "seems to be available";
}else{
    echo 
$domain "is in use";
    
//echo "<hr>";
    //echo $result;

Hope its usefull.
Ibbo

P.S its a php5 version, if you need a 4 I think i can sort one out.
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf

Last edited by ibbo : 04-26-2006 at 10:53 AM.
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Domain finder
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.19157 seconds with 12 queries