Jump to content

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"
    }
]

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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