Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Using DNSCMD to export reverse lookup zone

Posted on 2014-01-29
Medium Priority
Last Modified: 2014-01-29
I am using the following command to export DNS Reverse lookup zone to a file.

C:\>dnscmd DNSSERVER /zoneexport > c:\dnszones\

I do not get any error, but when I open up the exported file I see:

Usage: DnsCmd <ServerName> /ZoneExport <ZoneName> <ZoneExportFile>
    <ZoneName>   -- FQDN of zone to export
                    /Cache to export cache

Command failed:  ERROR_INVALID_PARAMETER     87  (00000057)

Check the required arguments and format of your command.

I wonder what I am typing wrong..

Any help will be very much appreciated

Thank you
Question by:jskfan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
LVL 15

Expert Comment

ID: 39819485
The command requires filename at the end. your command is missing file name.

dnscmd DNSSERVER /zoneexport

Author Comment

ID: 39819495
do you mean seatination file name? if so it is the .dns file

Author Comment

ID: 39819499
The zone I want to export is :
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 39819516
I am not sure what I typed wrong........
I did not have problem exporting forward lookup zones with DNSCMD
LVL 15

Expert Comment

ID: 39819519
I meant output file name, yes destination file name, avoid using zonename.dns as output file name, the default path of the output file is %systemroot%/System32/Dns directory and that can create problem if you don't provide proper path.

dnscmd DNSSERVER /zoneexport output.dns or

dnscmd DNSSERVER /zoneexport C:\dnszones\outputfilename.dns

Author Comment

ID: 39819536
I changed the filename and it is still doing the same thing
LVL 15

Accepted Solution

achaldave earned 2000 total points
ID: 39819565
Is the zone name correct? The command should export the reverse lookup zone

Author Comment

ID: 39819595
something weird...
I removed the DNSSERVERNAME from the command and it worked...

Author Comment

ID: 39819596
This worked
dnscmd  /zoneexport

Author Closing Comment

ID: 39819637

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

705 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