Domain name from host name
"Howie Hamlin" <[email protected]> Mon, 18 Aug 2003 11:58:43 -0400
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Does anyone know of a reliable routine to obtain the domain name from a host name? For example: host = domain mai1.domain.com = domain.com mail.east.domain.com = domain.com mail.domain.co.uk = domain.co.uk mail.west.domain.com.au = domain.com.au mail.domain.store = domain.store Basically, I need the root domain from any host name provided to the function. Thanks, Howie ------------------------ 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/