I am aware that is is possible to determine the web client computer name
using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
System.Web.HttpRequest.UserHostAddress). However, this only seems to work if
the client computer resides within the same domain as the web server.
Is it possible to determine the computer name for a web client which resides
in a different domain to the web server?
Eliyahu Goldin - 11 Feb 2008 15:33 GMT
Try Request.UserHostName.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 5 lines]
> resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:07 GMT
Unfortunately, that only returns the IP Address :-(
> Try Request.UserHostName.
>
[quoted text clipped - 7 lines]
> > resides
> > in a different domain to the web server?
Eliyahu Goldin - 11 Feb 2008 16:19 GMT
I don't think there is any other way.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Unfortunately, that only returns the IP Address :-(
>
[quoted text clipped - 10 lines]
>> > resides
>> > in a different domain to the web server?
bruce barker - 11 Feb 2008 16:22 GMT
for internet users, most use a proxy that will hide their machine name via
nat translation. if this in an internal application, you can configure
win/dhcp to update your internal dns server with the computer name.
-- bruce (sqlwork.com)
> I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 3 lines]
> Is it possible to determine the computer name for a web client which resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:32 GMT
I understand the basic concepts of DNS and DHCP from when I had technical
support roles, however, my knowledge of these areas is becoming a little
dated.
Are you telling me that one DNS server can be configured to update the
records of a different server in a different domain? i.e. DNS ServerA in
DomainA can inform DNS ServerB in DomainB that ComputerA exists.
If the systems can be configured to solve my problem, then I will have to
ask the systems guys to investigate.
> for internet users, most use a proxy that will hide their machine name via
> nat translation. if this in an internal application, you can configure
[quoted text clipped - 10 lines]
> > Is it possible to determine the computer name for a web client which resides
> > in a different domain to the web server?
Patrice - 11 Feb 2008 16:32 GMT
And the result you get is ? Any specific IP we could try ?
IMO this is more likely that some ISP won't bother with handling this so in
some cases the ISP will either ignore the request or will return some random
name...
What would you do with the host name ?
>I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 5 lines]
> resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:40 GMT
Please let me steer you back on to the path of my enquiry.
This is only for an Intranet application, and I am referring to internal
corporate domains.
Sorry for not being clearer from the outset!
> And the result you get is ? Any specific IP we could try ?
>
[quoted text clipped - 13 lines]
> > resides
> > in a different domain to the web server?
Patrice - 11 Feb 2008 16:55 GMT
And the result you get when trying is ? I also tried to resolve
207.46.192.254 which is a microsoft.com machine and it works...
--
Patrice
> Please let me steer you back on to the path of my enquiry.
>
[quoted text clipped - 23 lines]
>> > resides
>> > in a different domain to the web server?