Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- Domain Availabilty Lookup


louiseB - 10:08 pm on Dec 3, 2003 (gmt 0)


We are wanting to put a domain availability check tool on our site and have received an XML query from the provider (where the domain database is held) but have not used XML before. We use whois php script for tld's but need this new one for accurate .au domain checks.

Here's what we have been given:

Send XML:
-------------
<Request>
<Command>check_domain</Command>
<CheckDomain>provider.com.au</CheckDomain>
<CheckDomain>provider.net.au</CheckDomain>
<CheckDomain>thisisasillydomain.com.au</CheckDomain>
</Request>

Reply:
---------
<Reply>
<Command>check_domain</Command>
<ResultCode>1000</ResultCode>
<CheckDomain>
<content>provider.com.au</content>
<Available>0</Available>
</CheckDomain>
<CheckDomain>
<content>provider.net.au</content>
<Available>0</Available>
</CheckDomain>
<CheckDomain>
<content>thisisasillydomain.com.au</content>
<Available>1</Available>
</CheckDomain>
<Result>Success</Result>
</Reply>

We can have as many 'CheckDomain' fields as needed.

Also, we were given telnet info and I trying to find out how we use it too.

I have done a tutorial for a simple perl guestbook and understood what i was doing to a point, but don't quite grasp how to integrate it (Perl) with this query.

I appreciate your help :)
Louise


Thread source:: http://www.webmasterworld.com/perl/3353.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com