Link to home
Start Free TrialLog in
Avatar of martin_babarik
martin_babarikFlag for Czechia

asked on

DNSCMD /exportsettings - how to use it?

Hello,

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
Regards

Martin
Avatar of MikeKane
MikeKane
Flag of United States of America image

Ya, having an import would be too easy.    

Here's how to import the file:
http://blogs.pointbridge.com/Blogs/enger_erik/Pages/Post.aspx?_ID=2&t=a

The backup file can be used to recreate the zone when the time comes....  Read that post - its an excellent step by step.
Avatar of Paranormastic
Here is the current command syntax for dnscmd:
http://technet.microsoft.com/en-us/library/cc772069.aspx#BKMK_25a

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.
Avatar of martin_babarik

ASKER

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?
Martin
ASKER CERTIFIED SOLUTION
Avatar of Paranormastic
Paranormastic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Regards
Martin