i am looking for a nslookup component for delphi 4.
i have an ip address (example: 158.215.420.0) and i need to know if this ip
is a valid ip (if it really exists), and resolve the hostname (example:
www.abcx.com).
anyone, here, knows any component to do this ?
thanks
FE
Good luck,
Stephane
Fernando Escobar <esc...@softrent.com.br> wrote in message
news:7gurd3$eg...@forums.borland.com...
You can easily do it using TWSocket component from freeware ICS collection
(full source code included). Simply call TWSocket.ReverseDNSLookup and wait
for resolution to be done. It will call winsock that will call DNS to
reverse resolve the IP address to a name.
If you wants to directly interrogate a DNS, you can do it you TDnsQuery ICS
component. You must query PTR record from DNS to do reverse lookup.
Download ICS source code (ICS.ZIP) from
http://www.rtfm.be/fpiette/indexuk.htm
--
francoi...@pophost.eunet.be
The freeware Internet Component Suite maker
The freeware MidWare middleware maker
Download from http://www.rtfm.be/fpiette/indexuk.htm