Re: Domain name from host name
Godwin Stewart <[email protected]> Wed, 20 Aug 2003 22:40:16 +0200
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Organization | Nope, none here, it's a mess ;o) |
| Message-ID | <[email protected]> |
And Thus Spake "Howie Hamlin" <[email protected]> (on Wed, 20 Aug 2003 10:56:39 -0400): > Thanks - only problem is that this would be a lengthy operation in some > cases. There aren't too many other options. I thought about checking for a ccTLD, but even that can be a problem. For example, domain.fr is a valid form of domain, but so are domain.com.fr, domain.asso.fr and domain.tm.fr, so even if you have a ccTLD, the 2nd level domain isn't necessarily valid. In theory, all second level domains under com, net, org, tv and info are valid. All 3rd level domains under name and uk too. Other than that, you'll have to do the repeated DNS lookups as I described previously. -- G. Stewart -- [email protected] -- [email protected] Registered Linux user #284683 (Slackware 9.0) --------------------------------------------------------------- Hurewitz's Memory Principle: The chance of forgetting something is directly proportional to ..... to ........ uh .............. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi VCL Top Sites! http://www.sandbrooksoftware.com/TS/TS2/Components.shtml --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/