Solved

Using DNSCMD to export reverse lookup zone

Posted on 2014-01-29
10
2,093 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
Comment Utility
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
Comment Utility
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
Comment Utility
The zone I want to export is :
0.168.192.in-addr.arpa
0
 

Author Comment

by:jskfan
Comment Utility
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
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

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

Accepted Solution

by:
achaldave earned 500 total points
Comment Utility
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
Comment Utility
something weird...
I removed the DNSSERVERNAME from the command and it worked...
0
 

Author Comment

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

Author Closing Comment

by:jskfan
Comment Utility
Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

763 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

11 Experts available now in Live!

Get 1:1 Help Now