ntdsutil
ntdsutil: roles
fsmo maintenance: ?
fsmo maintenance: select opreation target
select operation target: Connections
server connections: connect to domain XXX.local
--Binding to \\dc-server.XXX.local..
--Connected to \\dc-server.XXX.local using credentials....
server connections: quit
select operation target: list naming contexts