Solving development problems  |  About this blog

Archive for the ‘windows 2008’ tag

Import/Export DNS zones from DNS Manager in Windows 2008 R2

First, you must have installed on your Windows 2008 server DNS Server Role. If you don’t installed it use this:

(Server Manager > Roles Summary > Add Roles > DNS Server)

Now, you can start DNS Manager clicking on icon or command %SystemRoot%\system32\mmc.exe %SystemRoot%\system32\dnsmgmt.msc /s

Just replace with your values:

  • [your_server_name] - your server name
  • [your_domain_name] - your domain (must repeat this for every domain – Export and Import)
  • [your_primary_ip] - because we were importing secondary zones, we needed to specify primary IP address (primary zone)
  • [your_custom_folder] - your custom folder where yo want to move exported domains and to import from

EXPORT SPECIFIC DNS ZONE

dnscmd [your_server_name] /ZoneExport [your_domain_name] [your_domain_name].txt
move /Y c:\Windows\System32\dns\[your_domain_name].txt [your_custom_folder]

IMPORT SPECIFIC DNS ZONE

move /Y [your_custom_folder]\[your_domain_name].txt c:\Windows\System32\dns\
dnscmd [your_server_name] /ZoneAdd [your_domain_name] /Secondary
             [your_primary_ip] /file [your_domain_name].txt /load

Written by Avivo

February 14th, 2011 at 12:02 pm

MimeType in IIS7 and configuration with IIS7 Admin Tool

We have experienced problem how to add MimeType that has two extensions, such as .exe.config

You can not do this using IIS7 GUI manager.

Instead of this use IIS7 console programme:

"C:\Windows\System32\inetsrv\appcmd.exe" set config "Default Web Site/sicer08" -section:system.webServer/staticContent /+"[fileExtension='.exe.config',mimeType='application/octet-stream']"

One more problem we expirienced on Windows 2008 Server 64-bit is that you can not see configuration files. They should be in C:\Windows\System32\inetsrv\Config\ but you can not see them using Windows Explorer, 32-bit application on 64-bit system so you need to find and install Microsoft IIS Admin Tool in order to manage these files (you will get one new icon in IIS7 Management Studio when you click on you IIS webserver and its name is Configuration Editor – you can edit then in Notepad – oh no…).

Written by Avivo

August 12th, 2009 at 11:23 am