title: Add DNS records from .NET app
body: <p>I am working on a webapp that we acquired from another company. When you "sign up", the server is supposed to create a DNS alias using WMI. It was crashing with a "Generic Error", which was later cured by adding the following tag to the Web.config file:</p>
  
  <p>identity impersonate="true" userName="administrator" password="theadminpass"</p>
  
  <p>This worked, but for some reason it has since broken, and obviously I don't like it from a security perspective. I have used the WMI management tool to give root\microsoftdns full wide-open permissions to admin, network service, network, and aspnet, with no success.</p>
  
  <p>Anyways, I want to know if there is a way other than using WMI to <em>reliably</em> and <em>securely</em> add DNS records from within a .NET web interface.</p>