Sometimes you need to know who’s who you in your Active Directory. What domain controller is responsible for what.
In that case, all you need to do is to run a very useful command.
Open a command line on a domain controller and type:
netdom query fsmo
This will give you the FSMO role owners for the domain controller domain.
If you have a scenario of several domain in a forest, and you want to query a specific domain, you can add the /domain parameter.
netdom query /domain:domainname.TLD fsmo