DNSCMD /exportsettings - how to use it?

Posted on 2008-10-10
Medium Priority
Last Modified: 2011-10-03

I was wondering if anyone could shed some light on the following question:
I know how to use the command dnscmd /exportsettings, but what is the right way to use the generated file? If I open it simply in Notepad it doesn't seem like something easy to read. I would be more expecting that there exist some /importsettings switch, but it seems that there is not anything like that.
So what is this command good for?
Thank you in advance

Question by:martin_babarik
  • 2
  • 2
LVL 33

Expert Comment

ID: 22688055
Ya, having an import would be too easy.    

Here's how to import the file:

The backup file can be used to recreate the zone when the time comes....  Read that post - its an excellent step by step.
LVL 31

Expert Comment

ID: 22688079
Here is the current command syntax for dnscmd:

Unfortuantely I do not have enough in the lab doing 2008 yet to look into this directly - are you able to upload the %systemroot%\system32\dns\dnssettings.txt file that results from this?

Does dnscmd /info give you what you are looking for?  If you need it in txt just add > c:\temp\filename.txt at the end.
LVL 13

Author Comment

ID: 22693446
Hello and thank you for the replies.
MikeKane: thanks but this guide refers to exporting the zone, which I understand. I was asking about /exportsettings switch.

Paranormastic: Actually using dnscmd /info > some file will do almost the same action like /exportsettings - but the question is: how to use that information?
Where to import it, how to use it for a configuration of DNS server? I was searching for anything like "import settings" either in GUI or CMD, but no success.

Any other ideas?
LVL 31

Accepted Solution

Paranormastic earned 2000 total points
ID: 22713721
Sounds like you are trying to install DNS by exporting the old DNS from presumably a Win2003 box so you can import them into the 2008 box?  Or that you're hoping you could just use the server as a client to get the info or something?

Here is a link that has some decent general information for you, as well as some good links to additional resources.

Setting up DNS in GUI shouldn't need to do this at all, the DNS setup wizard should be pretty smooth for whatever you need to know.  If you are running in core mode or just an old command line junkie, then it might come in useful, but is usually more for diagnostics / documentation.

There's not really a lot of great info on this command yet, but there is enough to get by if you dig around a little bit.  I'm just waiting for them to start making a batch file styled wizard some day for core installs!



Hope this helps - if you still have some questions, please let me know and be a little bit more specific as to what you are trying to accomplish that has not already been answered.
LVL 13

Author Closing Comment

ID: 31505048
Thank you very much.
I think your mentioning about "for documentation" could be the correct answer, as there doesn't seem to be any other use of this command.
But I owe you an explanation while being more specific: I'm writing a book about Windows Server 2003 and one of the topics I planned to write about was exporting the settings from one DNS server and importing them to another DNS server - doesn't matter whether they are 2003 or 2008. So I thought this exportsettings command will do the job, but I'm missing the second half - import:-)
Anyway thanks a lot.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question