Domain avaliability checker.

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
I need a script where like x10 it can check subdomains. I want the script so I can add my own subdomains and they check if its available or not similar to the x10 one.

Paying 200-500 points.
 
F

Fahad

Guest
What do you mean?
Is it like a script to work out whether a domain points to an x10 site or not?
Or a script to work out what server an x10 site is on?
 

FalseHope

Active Member
Messages
1,639
Reaction score
0
Points
36
I think he wants it to check to see if the sub-domain is already in use on his website/server/whatever, like the one that x10 has on their website. Please, correct me if I'm wrong.
 

Blockis2

Banned
Messages
225
Reaction score
0
Points
0
^You are correct.

He wants something relevant to the login/registration page where you have to choose the subdomain you want, and If it's available.

I'll see if my forum script has one, because it does check for existing ones.
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
You see the x10 main page there is a drop down that checks if the subdomain is currently avaliable I would like a script that checks if *.habboard.com is avaliable like a sub-domain avalibility.
 
F

Fahad

Guest
Oh, right!
As I promised, here it is:
PHP:
<?php
 // Name this script dns.php
 /* Requires the NET PEAR package, install it in your cpanel */
 include("Net/DNS.php");
 $ndr = new Net_DNS_Resolver();
 $ip = $ndr->search("$_GET['sd']", "A");
 if ($ip) {
 echo("Exists")
 }
 else {
 echo("Domain is available")
}
 ?>
HTML:
<form method="GET" action="dns.php">
Enter a subdomain to test: <input name="sd" type="text">
</form>

Have the PHP and HTML in seperate files.
 
Last edited by a moderator:

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
I'll give you credits if you could make me the script so I can add my own domains etc.. put all the files in a RAR or ZIP and if it works the points are yours.
 
F

Fahad

Guest
OK, I'll see what I can do!
EDIT: Done - see attached!
Change the domains in the <select></select> tags in the form.html file.
You will need the NET pear package, install this in your cPanel.

EDIT: Attachment removed
 
Last edited by a moderator:

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Can you please remove it now so nobody but me will get this package.
Edit:
Also how would I get pear. Next time email me the packages. spammeasmuchasyouwant (AT) gmail.com
 
Last edited:

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
How would I get the pear thing..
 
Last edited:
Top