Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2931
  • Last Modified:

Using DNSCMD to export reverse lookup zone

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
jskfan
Asked:
jskfan
  • 7
  • 3
1 Solution
 
achaldaveCommented:
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
 
jskfanAuthor Commented:
do you mean seatination file name? if so it is the .dns file
c:\dnszones\0.168.192.in-addr.arpa.dns
0
 
jskfanAuthor Commented:
The zone I want to export is :
0.168.192.in-addr.arpa
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
jskfanAuthor Commented:
I am not sure what I typed wrong........
I did not have problem exporting forward lookup zones with DNSCMD
0
 
achaldaveCommented:
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
 
jskfanAuthor Commented:
I changed the filename and it is still doing the same thing
0
 
achaldaveCommented:
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
 
jskfanAuthor Commented:
something weird...
I removed the DNSSERVERNAME from the command and it worked...
0
 
jskfanAuthor Commented:
This worked
dnscmd  /zoneexport 9.40.10.in-addr.arpa 9.40.10.in-addr.arpa.dns
0
 
jskfanAuthor Commented:
Thanks
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 7
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now