Avatar of yarek
yarek
Flag for France 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
Delphi

Avatar of undefined
Last Comment
Lukasz Zielinski

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
2266180

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
LukA_YJK

Maybe this will work

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;
2266180

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 :)
Lukasz Zielinski

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck