PDA

View Full Version : incorrect lookup results



adammc
09-20-2006, 01:04 AM
Hello,
Firstly let me say thanks for a FANTASTIC script.

I am in the process of installing it, doing a few tests and came across an error in the results, this happened many times.

These came up as unavailable whilst the common (.com,.net,.org) showed up available?

googlefdsfsfsdf.com.au - View Whois View Website
googlefdsfsfsdf.net.au - View Whois View Website
googlefdsfsfsdf.org.au - View Whois View Website
googlefdsfsfsdf.id.au - View Whois View Website


Is this a problem with my AU whois server?

Patrick
09-20-2006, 03:44 PM
That is likely. Try using the NS Validator tool in the admin panel to troubleshoot. You can use the tool to specifically determine what the nameserver is returning to the script (and perhaps the available unavailable words have changed or maybe the nameserver has changed altogether).

adammc
09-20-2006, 10:59 PM
Thanks for the reply Patiek :)

I think it may have been that the whois server has blocked my for 24hrs.

jozz
10-25-2006, 11:57 PM
Hi, I just wanted to see if someone has actually got the .com.au domains to return the correct results. Mine always display as available even if they are taken.

I suspect this is because the nameserver returns the value "available" or "not available", so if you do a keyword search for "available" it will still find it in both return values.

Do I assume correctly, or am I just doing something wrong.

Thanks for your help.

Patrick
10-26-2006, 11:01 AM
Hi, I just wanted to see if someone has actually got the .com.au domains to return the correct results. Mine always display as available even if they are taken.

I suspect this is because the nameserver returns the value "available" or "not available", so if you do a keyword search for "available" it will still find it in both return values.

Do I assume correctly, or am I just doing something wrong.

Thanks for your help.


If that is the case, then why not just change the keyword phrase?

jozz
10-26-2006, 07:19 PM
Because the results you get back from the nameserver are literally "available" if it is available and "not available" if it is not available. There are no further keywords to use.
I suspect this is because whois-check.ausregistry.net.au is not a true whois server and so only displays availability. Is there a way of still utilsing this service, as I 've heard this is the only server that handles bulk .com.au queries. (Also it is the current default for .com.au in EP-Dev whois).
Also, before I forget, its a great script!

Patrick
10-26-2006, 07:58 PM
I don't understand the problem. Just make the script look for NOT "not available" (click the help link next to the keyword box in the admin page for more information). Thus, the script can look for "not available" and if not found it will assume the domain is available.

The script has had this capability for a long time now.

jozz
10-26-2006, 09:30 PM
Patiek I appreciate your patience in helping me.
But it seems I still can't get it to work.
The keyword(s) to look for when querying a server.
If this is found, then the script will assume the domain is available.
So this would be the word "Available", which of course will not work as it will always be returned.

If you want to make the script assume the domain is unavailable unless the keyword is found, place !!! in front of the keyword.
And this would be the same keyword "Available" which would still have the same problem.

I can't see any information on entering a NOT "not available" request here.
And I've tried entering in every combination of "Not" "Available" and "!!!" I can think of.
How do I enter NOT "Not Available"?

Patrick
10-27-2006, 12:47 AM
That is a typo in the admin panel text I think. It should read:
"If you want to make the script assume the domain is available unless the keyword is found, place !!! in front of the keyword."

Patrick
10-27-2006, 12:53 AM
I have checked the script logic and it appears to all be correct.

The script checks for !!! and if found sets a $boolean which then determines whether a value is reversed or not:

// determine if available

if (eregi($keyword, $this->whoisData))

$this->available = true && !$opposite;

else

$this->available = false || $opposite;

It is likely that you are not setting BOTH the limit keyword and the normal keyword.

According to your posts, both keywords should be set to: !!!not available

jozz
10-27-2006, 01:16 AM
Thanks a lot for looking into the script Patiek, I'm getting somewhere now.

Now that I am using "!!!Not Available" in both fields It is working correctly in the Validating nameserver section. If its an unused name it validates, and an exsisting name it fails.

The problem now is that when I try to use the standard whois search page, it displays all .com.au addresses as being unavailable. when I click the whois info it displays the correct message (Available or Not Available) so it is recieving the right messages from the server.

Why is the page displaying different results to the validator.
This is probably why I didn't think it was working the first time I tried "!!!Not Available" as I was using the whois page to test.

Patrick
10-27-2006, 02:31 PM
The page should not be displaying different results. Is this the result of some browser cache or perhaps even the whois script's cache?

The validator that exists in the panel uses the exact same engine.php file that the whois script uses (and both essentially ask engine.php if the domain is available, having no idea how engine.php works but expecting a simple available / unavailable result).

I will do some of my own tests but I doubt there is any problem with the script at the moment, just based on the structure of the script (and encapsulation which should prevent different the possibility of different results).

Patrick
10-28-2006, 10:25 PM
Are you using the correct whois server for .au?

I do not think the script has support for .au by default. However, it DOES have the correct server already listed. Make sure you are using the whois.aunic.net (as specified on http://www.iana.org/root-whois/au.htm ). I tested with whois.aunic.net (all I did was add the extension to the list) and it works as expected.

I think this is just a case of you using the wrong server. In the future, you can reference http://www.iana.org for whois server information. The link is also available in the Troubleshooting section of the admin panel.


I also tested the .com.au whois server and it is working as expected with !!!Not Available (don't forget, !!!Not Available is case sensitive!).

jozz
10-29-2006, 05:55 PM
Hey thanks for all your patience Patiek.
Im now using whois.aunic.net which is working with no problems.

I was using whois-check.ausregistry.net.au for the check, which does return correct results but obviously was not working so well for me here. Perhaps it was a browser issue. I'll post here If I find out exactly what was causing the differences between the validator output and the webpage output.

Thanks again for all your help.

Patrick
10-29-2006, 07:33 PM
The server whois-check.ausregistry.net.au works for com.au. I know it does not work for simply au.

If you were not having success for com.au on whois-check.ausregistry.net.au then you probably did not take care to ensure that the string was case sensitive (for example, you probably put "!!!not available" instead of the correct "!!!Not Available").