# Windows – Userdnsdomain vs userdomain

windowswindows server 2008windows server 2012windows-domain

What's the difference between userdnsdomain and userdomain? Why the userdnsdomain can be called different than userdomain?
Example:

userdnsdomain: SU.SUPERUSER.LOCAL

userdomain: SUPERSU

When I tried to obtain these values in my development environment I got it as:

userdnsdomain - dev.local
userdomain - dev

The details of these terms are as below:

userdnsdomain - DNS name or FQDN (Fully Qualified Domain Name) of a domain (e.g. dev.local in my lab)

userdomain - It is netbios domain name (e.g. dev in my lab)

You can also check this - Is the NetBIOS name of the domain different from the domain name?

Also read this thread - Diferent UserDomain from UserDNSDomain

P.S. Just for additional information. In powershell there are environment variables to obtain these values for a computer:

$env:USERDNSDOMAIN$env:USERDOMAIN