Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hostname to IP address lookup

1 view
Skip to first unread message

Dan Miner

unread,
Nov 9, 2004, 12:22:03 AM11/9/04
to
I am a complete Delphi newbie and I've been punished enough by Delphi's help
system. I just want a simple set of Classes or routines that will lookup a
hostname and get its IP address via DNS or the system resolver. A pointer
to converting the IP address into a string would be helpful too.

Any clues and/or bones for me?

pseudo code for what I'm looking for.

hostname := 'google.com';
textDisplay.Text := IPAddrToString(Resolver.resolve(hostname));

I just want to get the IP address and display it. Any help would be
appreciated!

TIA,
Dan

0 new messages