title: How to get server domain name
body: <p>Can anybody tell me how to get servers domain name in asp.net?      (<code>Environment.UserDomainName</code> returns "IIS APPPOOL" string)</p>
  
  <p>Thanks for replays, but mostly they are about DNS name of the server, what I need is the domain name. For example when I login via windows authentication I type domain\user and I need this "domain"</p>