title: Determine current domain controller programmatically
body: <p>I need to query current domain controller, probably primary to change user password.</p>
  
  <p>(P)DC name should be fully qualified, i.e. <code>DC=pdc,DC=example,DC=com</code> (how to properly name such notation?)</p>
  
  <p>How can it be done using C#?</p>