Forum Moderators: coopster

Message Too Old, No Replies

domain availability

         

agriz

2:05 pm on Jul 10, 2010 (gmt 0)

10+ Year Member



Hi,

I am in need of domain availability checking script which will search for

.do
.com.do
.edu.do

like this.

Can you give me idea how to do this?

(I have open source script which search .com,.info)

Regards
Mahesh

Readie

2:10 pm on Jul 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Potential solution that leaps to my mind:

Have an array of TLDs, which your script loops through and appends to the ($_POST?) info that you have.

For each one, do a whois lookup, and check the results.

There should be some discernible pattern for "in use" and "not in use" something like a substr() in an if should be able to pick up on.

agriz

2:22 pm on Jul 10, 2010 (gmt 0)

10+ Year Member



If it is .com, the open source script uses the following domain to get result whois.verisign-grs.com

.com => whois.verisign-grs.com
.net => whois.verisign-grs.com

But i dont know how to do whois for .com.do,.edu.do,...

agriz

2:40 pm on Jul 10, 2010 (gmt 0)

10+ Year Member



.org => whois.publicinterestregistry.net
.info => whois.afilias.net
.biz => whois.nic.biz

So, I am confused which server to use to get results for the .do, .com.do, etc

Readie

2:53 pm on Jul 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A quick Google gave me this link:

[domaininformation.de...]

Seems fairly comprehensive.

agriz

3:38 pm on Jul 10, 2010 (gmt 0)

10+ Year Member



this is the script i am using.
[agrizlive.com...]

i tried the link you gave me. But i didnt find server for .do

I tried this link for dominican republic. But i am not sure.
[101domain.com...]

agriz

4:53 pm on Jul 10, 2010 (gmt 0)

10+ Year Member



I found this.

[nic.do...]
I think this is the server to test .do domains

but when i do fsockopen with nic.do/whois-hin.php3, i am getting error.

Warning: fsockopen() [function.fsockopen]: unable to connect to [nic.do...] (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in C:\wamp\www\whois\custom_3.php on line 439
Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?

agriz

12:55 pm on Jul 11, 2010 (gmt 0)

10+ Year Member



Hi,
I wrote one script which check the header status of the domain.

<?php ini_set('display_errors', 0); ?>
<?php
error_reporting(0);
$fp = fsockopen("www.agriz.biz", 80, $errno, $errstr, 30);
if (!$fp) {
echo "Domain Not available";exit;
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.example.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$status .= fgets($fp, 128);
}
fclose($fp);
}

if(strpos($status,"HTTP/1.1 200 OK") === false){
echo "Domain Not available";
}
else{
echo "Domain Is Available";
}
?>

Will it work 100% perfectly?

Please let me know.