Re: Domain name from host name
"Howie Hamlin" <[email protected]> Tue, 19 Aug 2003 13:51:48 -0400
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
There is no '/' in a host name. I'm getting the host name from a reverse DNS lookup. Once I have the host name I want to just get the domain name from that as shown below. Thanks, Howie ----- Original Message ----- From: "Mike Bouffler" <[email protected]> To: <[email protected]> Sent: Tuesday, August 19, 2003 4:42 AM Subject: RE: [Delphi] Domain name from host name > Why not just search for the first '/' and take anything to the left of it? > > MikeB > > > -----Original Message----- > > From: Howie Hamlin [mailto:[email protected]] > > Sent: 18 August 2003 16:59 > > To: [email protected] > > Subject: [Delphi] Domain name from host name > > > > > > 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/ > > > > > > > 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/ > > ------------------------ 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/