Hi all,

on HTTP server side, we use sock.GetRemoteSinIP and  
sock.ResolveIPToName(AP)
calls to do reverse lookup remopte host name.
Lately we've encoutered in some LANs that reverse resolving is unsuccessful
and IP address is returned.

winsock.getnameinfo() function the ResolveIPToName method is based on
is documented in platform SDK as being unreliable for reverse lookups:

Note

The capability to perform reverse lookups using the getnameinfo function
is convenient, but such lookups are considered inherently unreliable,
and should be used only as a hint.

--

Switching NetBIOS over TCP/IP ON does not help (in the past
in networks with W2K computers it had always effect,
but on XP it does not)

Is there any reliable solution how to perform reverse DNS lookup
with Synapse?

--

BTW, is this correct?

   function TBlockSocket.ResolveIPToName(IP: string): string;
   begin
     if not IsIP(IP) or not IsIp6(IP) then
       IP := ResolveName(IP);
     Result := synsock.ResolveIPToName(IP,....
   end;


Should not be there:

   if not IsIP(IP) AND not IsIp6(IP) then
                   ^^^



Thanks, pf

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to