T
Ted Graham
Anyone know how to get the full network name for the current machine?
If my machine is tedsmachine and is in yahoo's domain, I want to get
tedsmachine.yahoo.com
System.Security.Principal.WindowsIdentity.GetCurrent().Name gets the
machineName\WindowsUser. E.g., tedsmachine\tedg
Dns.GetHostName() gets just the machine. E.g., tedsmachine
Dns also offers Resolve(), but that gets me an IP address.
Running ipconfig I can see the DNS Suffix, but I don't know how to
access it.
I'm using C#, but I'll take sample code in any language. Thanks!
If my machine is tedsmachine and is in yahoo's domain, I want to get
tedsmachine.yahoo.com
System.Security.Principal.WindowsIdentity.GetCurrent().Name gets the
machineName\WindowsUser. E.g., tedsmachine\tedg
Dns.GetHostName() gets just the machine. E.g., tedsmachine
Dns also offers Resolve(), but that gets me an IP address.
Running ipconfig I can see the DNS Suffix, but I don't know how to
access it.
I'm using C#, but I'll take sample code in any language. Thanks!