yarek
asked on
delphi convert IP to domain name
I have for instance an IP address : 209.73.186.238 which is the IP for www.yahoo.com
(ping www.yahoo.com gives me 209.73.186.238).
How can I re-verse the PING search, that is GIVEN the IPAdress, get the domain name
INPUT : 209.73.186.238
OUTPUT : www.yahoo.com
(ping www.yahoo.com gives me 209.73.186.238).
How can I re-verse the PING search, that is GIVEN the IPAdress, get the domain name
INPUT : 209.73.186.238
OUTPUT : www.yahoo.com
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
that requires a connection to the host. the host might be behind a firewall or jsut not have teh prot open to which you will connect. so it's not exactly a good solution :)
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup Zone:
accept ciuly's comment as answer {http:#17519361}
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
ziolko
Experts Exchange Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup Zone:
accept ciuly's comment as answer {http:#17519361}
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
ziolko
Experts Exchange Cleanup Volunteer
var s: TClientSocket
...
s := TClientSocket.Create();
s.Address := Input;
s.Active := True;
...
Then when it's connected you can get the host. You can write it in Connect event handler
Output := s.Host;