PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_DNS » Bug #5266

Top-level domains for countries doest not work

Details

Request #5266Top-level domains for countries doest not work
Submitted2005-09-01 13:44 UTC
Fromchriscalip at yahoo dot com
StatusBogus
PackageNet_DNS
PHP Version4.3.10
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-09-01 13:44 UTC] chriscalip at yahoo dot com

Description:
------------
Im doing a mimic of dnsreport.com but under the net_dns package.

Entries for top-level domain for countries are not accepted.
Works fine for .com, .org, etc. but not the unique two-letter combinations for every country.

Test script:
---------------
$searchThis = "gr.nl";
$oParentSearchDomain = new Net_DNS_Resolver();
$oParentSearchAResult = $oParentSearchDomain->search($searchThisDomain);

// Check if direct parent zone exist, any query by search method without
// providing the nameservers ip will query via direct parent zone ie. top-level domain server
if ($oParentSearchNSResult = $oParentSearchDomain->search($searchThisDomain, NS)) {
//Do stuff
echo "Did stuff";
} else {
exit ('Error! Invalid Domain Name');
}

Expected result:
----------------
Did stuff

Actual result:
--------------
Error! Invalid Domain Name

[2005-09-01 14:04 UTC] chriscalip at yahoo dot com

Test script:
---------------
$searchThisDomain = "gr.nl";
$oParentSearchDomain = new Net_DNS_Resolver();
$oParentSearchAResult =
$oParentSearchDomain->search($searchThisDomain);

// Check if direct parent zone exist, any query by search method
without
// providing the nameservers ip will query via direct parent zone ie.
top-level domain server
if ($oParentSearchNSResult =
$oParentSearchDomain->search($searchThisDomain, NS)) {
//Do stuff
echo "Did stuff";
} else {
exit ('Error! Invalid Domain Name');
}