+---------- On Oct 20, Wojciech Kocjan said:
> I need to make AOLserver run DNS lookups (with a seperate thread - to
> avoid simple DoS attacks :).
This will try to find an IP address for a domain name:
set ip [ns_addrbyhost example.com]
If you want to look for other types of records for a host name, you'll
need to do some programming.
> The user should ask if a domain exists, AOLserver will call another
> thread to check it out and refresh the page using some ID of the check.
Looking up a host in DNS doesn't determine whether the domain is
available. For that you need to do a whois lookup. Fortunately that's
TCP-based, so you can do it entirely with Tcl in AOLserver.