Re: Domain name from host name

Godwin Stewart <[email protected]> Tue, 19 Aug 2003 22:26:53 +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 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.

------------------------ 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/