Check out http://bw.org/whois/ for a program you can exec to do a whois, figure out which registrar they used, then query that registrar to get the detailed info. Doing it in a dedicated thread is a totally separate issue from how you do the query.
ns_addrbyhost will only work with a domain name if the DNS admin has created an "A" record for the name itself. Most do, but it isn't a requirement (i.e., www.domain.com could exists while domain.com gives an error). Jim > > +---------- 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. >
