Hi Michael,
Yes, the kb article I provided in my last reply is focus on get the DNS
name of the Server Machine. However, I think the System.Net.Dns class is
still useful to us. I've find it has a static method
"GetHostByAddress" which can return the DNS info of a computer via its IP
Address.
#Dns.GetHostByAddress Method (String)
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemNetDnsClassGet
HostByAddressTopic2.asp?frame=true
And in ASP.NET we can get the client machine's ip address via
Request.UserHostAddress. So I think we can combine the two ones together as
below:
Response.Write("<br>" +
System.Net.Dns.GetHostByAddress(Request.UserHostAddress).HostName);
It'll return the full DNS hostname of the machien, include the full domain
name and the machine's alias. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx