Solved

Using DNSCMD to export reverse lookup zone

Posted on 2014-01-29
10
2,179 Views
Last Modified: 2014-01-29
I am using the following command to export DNS Reverse lookup zone to a file.

C:\>dnscmd DNSSERVER /zoneexport 0.168.192.in-addr.arpa > c:\dnszones\0.168.192.in
-addr.arpa.dns

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
0
Comment
Question by:jskfan
  • 7
  • 3
10 Comments
 
LVL 15

Expert Comment

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

dnscmd DNSSERVER /zoneexport 0.168.192.in-addr.arpa 0.168.192.in
-addr.arpa.dns
0
 

Author Comment

by:jskfan
ID: 39819495
do you mean seatination file name? if so it is the .dns file
c:\dnszones\0.168.192.in-addr.arpa.dns
0
 

Author Comment

by:jskfan
ID: 39819499
The zone I want to export is :
0.168.192.in-addr.arpa
0
 

Author Comment

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

Expert Comment

by:achaldave
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 0.168.192.in-addr.arpa output.dns or


dnscmd DNSSERVER /zoneexport 0.168.192.in-addr.arpa C:\dnszones\outputfilename.dns
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

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

Accepted Solution

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

http://dns-info.blogspot.com/2009/02/export-reverse-lookup-zone-using-dnscmd.html
0
 

Author Comment

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

Author Comment

by:jskfan
ID: 39819596
This worked
dnscmd  /zoneexport 9.40.10.in-addr.arpa 9.40.10.in-addr.arpa.dns
0
 

Author Closing Comment

by:jskfan
ID: 39819637
Thanks
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now