Jump to content

Domain .co.ao


Recommended Posts

Cannot add domain .co.ao

Someone know's the configuration for this tld?

As far as i can get but returns always domain unavailable

[
    {
        "extensions": ".ao,.co.ao",
        "uri": "socket://dns.ao",
        "available": "NOT FOUND"
    }
]

 

Edited by WHMCS ChrisD
Added WHOIS Server into Code Block
Link to comment
Share on other sites

I don't think that there is a publicly available port 43 whois server for .ao domains.... if that's the case, then you'll need to find a website form that can perform .ao whois searches that doesn't include captcha or any verification process - although, i'm not aware of any site that can do this for .ao domains.

Link to comment
Share on other sites

  • 1 month later...

You can try this:

    {
        "extensions": ".co.ao,.ao",
        "uri": "https://yourdomainname.xyz/checkdomainao.php?domain=",
        "available": "Dominio disponivel"
    },

Code for "checkdomainao.php":
 

<?php
// Verifica domínios .co.ao
error_reporting(0);

if($_GET["domain"] == "")
{
die();
}

$post_data['query'] = $_GET["domain"];
$post_data['search'] = "Pesquisar a WHOIS";

foreach ( $post_data as $key => $value) 
{
    $post_items[] = $key . '=' . $value;
}
$post_string = implode ('&', $post_items);

$curl_connection = curl_init('https://www.reg.it.ao/whois');

curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);

curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);

$result = curl_exec($curl_connection);
//curl_close($curl_connection);
//var_dump($result);

if (strpos($result, 'não está registado') AND !strpos($result, 'Este domínio não pode ser registado.')) {
    echo "Dominio disponivel";
} else { echo "Dominio indisponivel"; }

?>

This may stop working if they change their website.

Link to comment
Share on other sites

  • 1 month later...
  • 3 years later...

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