Re: Domain name from host name
"Howie Hamlin" <[email protected]> Wed, 20 Aug 2003 10:56:39 -0400
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Thanks - only problem is that this would be a lengthy operation in some cases. regards, Howie ----- Original Message ----- From: "Godwin Stewart" <[email protected]> To: <[email protected]> Sent: Tuesday, August 19, 2003 4:26 PM Subject: Re: [Delphi] Domain name from host name > And Thus Spake "Howie Hamlin" <[email protected]> (on Tue, 19 Aug 2003 > 13:51:48 -0400): > > > 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. > > Start with the second level domain and try and get a DNS lookup for that. If > it doesn't resolve, go to the 3rd level and try that. Repeat the operation > until you get a positive result. > > -- > G. Stewart -- [email protected] -- [email protected] > Registered Linux user #284683 (Slackware 9.0) > --------------------------------------------------------------- > Everyone has a photographic memory. Some just don't have film. > > > 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/