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.UserHostAddress
).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.

Reply via email to