9.16.2006

DNS stack in Win2000

Windows 2000 WMI DNS Provider

DNS WMI Provider creates and populates WMI classes, which reference information contained in DNS zones and their resource records. The provider can be used to manipulate DNS servers, zones, and individual records. All necessary files are downloadable from the Microsoft FTP Site at ftp://ftp.microsoft.com/reskit/win2000/dnsprov.zip.

To install the provider, after extracting the content of the zip file, copy the dnsschema.mof to %systemroot%\system32\wbem\mof folder. The file should get automatically compiled and moved to the Good subfolder. Then copy the dnsprov.dll to the %systemroot%\system32\wbem folder and register it with the operating system by running: regsvr32 dnsprov.dll. You should get the confirmation of the successfull registration.

You can review the classes created by the MOF file compilation by either checking the documentation provided with the source files or by running any of the utilities included with WMI SDK (such as CIM WMI Studio) or WbemTest.exe, available on any computer with WMI installed (any Windows 2000 computer). DNS Provider populates a separate namespace in the WMI hierarchy - root\MicrosoftDNS. The namespace contains about 30 DNS related classes.

Along with the provider dll and MOF file, the downloaded zip file contains several VBScript examples, which allow you to accomplish most of the DNS related management tasks. For example, dnsserver.vbs can be used to:

- stop DNS server
cscript //nologo dnsserver.vbs stop

- start DNS server
cscript //nologo dnsserver.vbs start < - restart DNS server cscript //nologo dnsserver.vbs restart - list DNS server configuration cscript //nologo dnsserver.vbs LIST - list zones on the DNS server cscript //nologo dnsserver.vbs zone - modify the configuration of the DNS server cscript //nologo dnsserver.vbs modify With dnszones.vbs, you can create, modify, add, delete, pause, update, resume, reload, and refresh DNS zones. dnsrecord.vbs allows you to add, delete, modify, and list resource records. http://www.serverwatch.com/tutorials/article.php/1476601

WinXP
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh_int_ip.mspx?mfr=true

No comments: