Try the one in the current SDK.

Shawn

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of jhon wong
Sent: Friday, September 26, 2003 9:42 AM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: question about RDNS

Hi Tracy,

    You are right. I trid the nbtstat -A 218.246.127.68, it really return
NETBIOS name.

    Yes,in windows platform,"gethostbyaddr" is adapted to NETBIOS. And
microsoft advise to use "getnameinfo"
instead of "gethostbyaddr". please see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/win
sock/gethostbyaddr_2.asp

    But I can't find "getnameinfo" in <winsock2.h> at all with vc6.0.I don't
know why.

    Best regards,
    Jhon


----- Original Message -----
From: "Tracy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:07 PM
Subject: [xmail] Re: question about RDNS


> You're running Windows, yes? If so, this is "by design". If Windows is 
> not able to resolve an address by finding a PTR record, it attempts to 
> resolve the address using NetBIOS - to do this, it issues a NetBIOS 
> request to the machine in question and listens for a response. 
> Assuming no firewalls get in the way, the machine will answer that request
with it's "computer name"
> (the locally assigned name that was created during the installation of 
> Windows).
>
> Try using:
>
> nbtstat -A 211.149.111.76
>
> and see what comes back (note that the -A must be a capital A, not a 
> lower case a). I'm guessing that the name you are seeing in your mail 
> logs will show up in the output from that command. (I'd try it here, 
> to give you sample output, but I have NetBIOS blocked at my border 
> router.)
>
> At 09:13 9/26/2003, jhon wong wrote:
>
>
> >Hi,Jeff:
> >
> >    According to my knowledge, when gethostbyname execute RDNS 
> >result,it should return FQDN result if ip has PTR.
> >    But I find that sometimes non FQDN result is returned and in fact 
> >the ip hasn't PTR at all.
> >That is the problem.
> >
> >
> >
> > > >
> > > Hi Davide,
> > >
> > > Could his problem have anything to do with Verisign's new policy 
> > > of redirecting lookups for bogus domains to one of their sites?
> > >
> > > Jeff
> > >
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe xmail" 
> > > in the body of a message to [EMAIL PROTECTED] For general 
> > > help: send the line "help" in the body of a message to 
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe from this list: send the line "unsubscribe xmail" in 
> >the body of a message to [EMAIL PROTECTED] For general help: 
> >send the line "help" in the body of a message to 
> >[EMAIL PROTECTED]
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in 
> the body of a message to [EMAIL PROTECTED] For general help: 
> send the line "help" in the body of a message to 
> [EMAIL PROTECTED]
>
>


-
To unsubscribe from this list: send the line "unsubscribe xmail" in the body
of a message to [EMAIL PROTECTED] For general help: send the line
"help" in the body of a message to [EMAIL PROTECTED]




-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to