Jump to content

WHOIS Server Issue


Gerald

Recommended Posts

Hello,

can you please help i have a question !

how can i create some kind of internal " whois server " for a domain .AL so i can register the domain's on my database.

since there is no whois server for .AL domains,

is there any method i can have domains already registered in my website to show as unavailable? some kind of internal check into a database or something?

 

i don't know if i was very clear in explaining my problem, i hope someone can help me.

thank you.

Link to comment
Share on other sites

It is really easy, look,

1) Create subdomain ( like whois,yoursite.com )

2) Add your subdomain link to /includes/whoisservers.php ( make new line and write: .al|whois.yoursite.com|No entries found

3) Create script which will check domains avaibility from the file.If domain free your script shoud write No entries found....

Hope this will help

 

Best Regards,

Alex.

Link to comment
Share on other sites

Can u please tell me or give me some kind if directions on how can i create the "" 3) Create script which will check domains avaibility from the file.If domain free your script shoud write No entries found.... "" Because here is were i am confused and cant work it out ! How can i create the check domain avaibility from the file ?

That would help me solve my problem ! Thank you for taking time on this !

Link to comment
Share on other sites

a very simple example

<?php


if ($_SERVER['REQUEST_METHOD'] == 'GET'){
   $check = htmlspecialchars($_GET['domain']);
}else{
   $check  = htmlspecialchars($_POST['domain']);}
$mystring = prezident.al  mail.al'; //write your domains, separate with the space
$pos = strpos($mystring, $check);

if ($pos !==  false) {
    echo "Registered";//change if you need
} else {
    echo "Not found";//change if you need
}

?>

Link to comment
Share on other sites

Thank's for taking time and helping ! What precisely i'm looking for is for a script who can create files '".al " ! So when users purchase the domain they are looking for a file can be created so after they make the payment the domain wont be available ! Example : support.host.al whois server: http://www.host.al/html/domain/domwhois/domain/ !! I am trying to do the same thing ! Again thank you for your help !

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