Not sure how that got screwed up, but the line of code is:

Response.Write("host
name:"+Dns.GetHostByAddress(Request.UserHostAddress).HostName);

Still can't get it sorted out though ...  HELP PLEASE

> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> On Behalf Of Jon Gilkison
> Sent: Tuesday, May 21, 2002 7:16 PM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Resolving DNS names with DNS.GetHostByAddress
>
>
> I'm having quite a bit of trouble getting the System.Net.Dns
> class working in my asp.net application.
>
> Below is the simple line of code causing me grey hairs:
>
> Response.Write("host
> name:"+Dns.GetHostByAddress(Dns.GetHostByAddress(Request.UserH
> ostAddress
> ).HostName);
>
> Hitting this page from the internal network resolves the
> machine name, but hitting this page from the internet,
> outside of the local network, results in the following error:
>
> The requested name is valid and was found in the database,
> but it does not have the correct associated data being resolved for
>
> I'm sure this is a security thing, but I can't figure it out
> for the life of me ... anyone?
>
> You can read messages from the DOTNET archive, unsubscribe
> from DOTNET, or subscribe to other DevelopMentor lists at
> http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to