Jump to content

Multiple subdomains options, with whois!


Recommended Posts

putting my own domain name in there the .uk.to prefix is a free sub domain name its part of a public database see http://www.uk.to and like i said ive also tried my own personal domain name and that don't work ether. I have PHP and development knoleage and have been in the field since 1997. This script just don't seam to work, Is their a working demo of this i can see online to see where i am going wrong if any at all.

Link to comment
Share on other sites

putting my own domain name in there the .uk.to prefix is a free sub domain name its part of a public database see http://www.uk.to and like i said ive also tried my own personal domain name and that don't work ether. I have PHP and development knoleage and have been in the field since 1997. This script just don't seam to work, Is their a working demo of this i can see online to see where i am going wrong if any at all.

 

I don't know about any specific demo sites that you could look that would help you.

Your welcome to have a go on my site if you wish however please remember it is a working site/program.

Will PM you the details.

 

Could you please PM your 2 files subwhois.php and whoisservers.php

So I can see if you have missed something in them. please leave them original.

Link to comment
Share on other sites

An Update for anyone using this script.

 

I found that the Registration date and Status, where Not displaying anything.

Fixed in this code below.

(All credit should go to original author.)

<?php
   // reserve your subdomains registered outside whmcs
   $mysubs = array ("whois.brasiweb.com", "forum.brasiweb.com", "central.brsaiweb.com", "desk.brasiweb.com");
   $domain = strtolower($_REQUEST[domain]);
   include ("configuration.php");
   @mysql_connect($db_host,$db_username,$db_password)or die("An error has occured:".mysql_error());
   mysql_select_db($db_name)or die("An error has occured:".mysql_error());
   $query_domain = mysql_query("SELECT * FROM tbldomains WHERE domain='$domain'")or die(mysql_error());
   $query_domain_results = mysql_fetch_assoc($query_domain);
?>
   <html>
   <head><title>Search results</title></head>
   <body>
<?php
   if(mysql_num_rows($query_domain)!='1') {
     if (in_array($domain, $mysubs)) {
       print ("Error: $domain is a reserved subdomain");
     } else {
       print('This domain is available');
     }
   } else {
   $query_data = mysql_query("SELECT * FROM tblclients WHERE id='$query_domain_results[userid]'");
   $query_data_results = mysql_fetch_assoc($query_data);
   print ("Domain: $domain
\r\nRegistrant: $query_data_results[firstname] $query_data_results[lastname]
\r\nE-mail: ");
   $email = str_replace("@","[at]",$query_data_results[email]);
   print $email;
   $query_data = mysql_query("SELECT * FROM tbldomains WHERE id='$query_domain_results[userid]'");
   $query_data_results = mysql_fetch_assoc($query_data);
   $registrationdate = explode("-", $query_domain_results[registrationdate]);
   $reg_date = $registrationdate[2]."/".$registrationdate[1]."/".$registrationdate[0];
   print("
\r\nRegistered: $reg_date
\r\nStatus: $query_data_results[status]");
   } 
?>

Link to comment
Share on other sites

  • 3 weeks later...

Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime?

Link to comment
Share on other sites

Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime?

Same as you do for getting it to check .com, .co.uk , .randomotherdomain

Link to comment
Share on other sites

Read the post mate, i said it checks to see if the sub domain is registered to as client in WHMCS it dont actualy check the sub domain in realtime using whois.

 

What im trying to say is this mod is checking the WHMCS DB and not the DNS servers of the sub domain

Link to comment
Share on other sites

Ok for this script it says the domain is registered once the sub domain is the the users WHMCS but for .uk.to and .us.to sub domains this is useless as thier DNS is hosted in the public domain and its quite possible that the sub domain is already registered. How would you get it to check that in realtime?

 

Sisgroup

As I stated once before to you. Unless you own the domain you can't do this. (to my knowledge)

Unless you can get access to the database that is already dishing out the subdomains, you would then enter a WHOIS entry into the whois.php file.

 

If you do own the domain then you will know what subdomains are already in use. So you could reserve them, or if they are then your clients why would they not be in your database anyway or why would you not set them up in WHMCS and from there on the only way the subdomains can be registered is via WHMCS. Hence recording every subdomain in use.

 

I'm afraid you have confused me somewhat.

 

I also have to wonder if this domain is Not yours why are you bothering with it at all?

 

Just my thoughts

Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...
  • 1 year later...

Hello.

 

I need some little help.

This script is just what I need and I got it working, but its somewhat unusable. I add my ".domain.com" TLD but I must set a price to it (can't be zero), otherwise it won't be used on the domain search on the frontend neither it will show on the "order new services" form. This isn't right because I don't wish to charge for a subdomain, I want it to be free of charge. How can I do it?

 

On the other hand, the frontend domain search box shows the phrase "eg. yourdomain.com" and doesn't provide a dropdown list of the available TLDs, and I want it to limit to the TLDs I have configured, because I'll only allow the registration of subdomains on my domains. This misleads the customers. How can I configure this?

 

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated