Domain Name Resolution

srilatha26

New member
Joined
Feb 8, 2005
Messages
4
Hi,
Is there a way of finding the domain names associated with the system using VB.Net?

Sample code or appropriate links appreciated.

Thanks !
 
Using:

Code:
system.environment.UserDomainName

will return the network domain, you could place it in a label or something like this:

Code:
Me.Label1.Text = System.Environment.UserDomainName.ToString
 
Hi,
Thanks for the response.


system.environment.UserDomainName gives the domain the current user has logged into.

What Iam looking for is the list of all domains in the environment. We want to display the list of domains in a drop down list, so the user can choose one of the domains that he wants to log on to.
 
Back
Top