Home » Networking » Net_DNS » Bug #5266
Top-level domains for countries doest not work
Details
| Request #5266 | Top-level domains for countries doest not work |
|---|---|
| Submitted | 2005-09-01 13:44 UTC |
| From | chriscalip at yahoo dot com |
| Status | Bogus |
| Package | Net_DNS |
| PHP Version | 4.3.10 |
| OS | Windows 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');
}