I think I may need to create a tool to assist in migrating DNS information, creating “shadow” zones for NAT’ed addreses, and so on in our forest of 2003 and 2008 servers.
I know there are ways to access Windows DNS via WMI (and thus through PowerShell, WSH, etc., but are there better high-level options for .NET?
I would consider more flexible languages (e.g. Python) and libraries (e.g. BIND) except for the requirement of Microsoft’s “secure updates”.
Does the following post help you out at all? It gives some code to handle talking to the MS DNS server.
http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/d7af771b-7c6b-4ee8-acfb-28a12bc1c5e7/
Pasting their C# below for ease of reference. Note that if you run this code locally on the DNS itself, then you need to remove the authentication credentials portions below when calling this code… (i.e.
DnsProvider dns = new DnsProvider("localhost",null,null);)