Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Recover deleted zone file

438 views
Skip to first unread message

Jay Moore

unread,
Oct 5, 2010, 1:12:37 PM10/5/10
to bind-...@lists.isc.org
I am running BIND 9.4.3-P1 on slackware  12.2.  The server is only for internal use.  I have accidentally removed one of my zone files, and I have no backup!  Is there a way to restore this zone file from the cache?  I looked at rndc and named options, but don't see anything that will help? 



--
Jay Moore, CIO
The National Beta Club
UT PROSIM


Jay Ford

unread,
Oct 5, 2010, 1:22:09 PM10/5/10
to Jay Moore, bind-...@lists.isc.org
On Tue, 5 Oct 2010, Jay Moore wrote:
> I am running BIND 9.4.3-P1 on slackware  12.2.  The server is only for
> internal use.  I have accidentally removed one of my zone files, and I have
> no backup!  Is there a way to restore this zone file from the cache?  I
> looked at rndc and named options, but don't see anything that will help? 

Assuming zone transfers are allowed:
dig -t axfr zone_name @127.0.0.1 >rescued_zone_file

________________________________________________________________________
Jay Ford, Network Engineering Group, Information Technology Services
University of Iowa, Iowa City, IA 52242
email: jay-...@uiowa.edu, phone: 319-335-5555, fax: 319-335-2951

Andrey G. Sergeev (AKA Andris)

unread,
Oct 5, 2010, 1:24:25 PM10/5/10
to bind-...@lists.isc.org
Hello Jay,


Tue, 5 Oct 2010 13:12:37 -0400 (EDT) Jay Moore wrote:

> I am running BIND 9.4.3-P1 on slackware 12.2. The server is only for
> internal use. I have accidentally removed one of my zone files, and I
> have no backup! Is there a way to restore this zone file from the
> cache? I looked at rndc and named options, but don't see anything
> that will help?

You can pull your zone data from you secondaries:

dig @secondary-server-name.domain.tld. your-domain.tld. axfr


--

Yours sincerely,

Andrey G. Sergeev (AKA Andris) http://www.andris.name/

Eivind Olsen

unread,
Oct 5, 2010, 1:39:53 PM10/5/10
to bind-...@lists.isc.org
--On 5. oktober 2010 13.12.37 -0400 Jay Moore <jmo...@betaclub.org> wrote:
> I am running BIND 9.4.3-P1 on slackware 12.2. The server is only for
> internal use. I have accidentally removed one of my zone files, and I
> have no backup! Is there a way to restore this zone file from the cache?
> I looked at rndc and named options, but don't see anything that will
> help?

"rndc dumpdb -zones" might work for you? I have no idea where that file
will end up on your setup though.

Another option: If the zone transfer isn't available as an option, and you
don't have a slave DNS to copy it from either.. I haven't tried this, so I
can't guarantee it will work, but it might work changing the named.conf to
allow zone transfers, then do a "rndc reconfig"? No guarantees that it will
work as expected though :D

Regards
Eivind Olsen

Todd Snyder

unread,
Oct 5, 2010, 2:20:14 PM10/5/10
to Jay Moore, bind-...@lists.isc.org

If you haven’t restarted the server, you could do an rndc dumpdb and grab the zone content I’d think

 

From: bind-users-bounces+tsnyder=rim...@lists.isc.org [mailto:bind-users-bounces+tsnyder=rim...@lists.isc.org] On Behalf Of Jay Moore
Sent: Tuesday, October 05, 2010 1:13 PM
To: bind-...@lists.isc.org
Subject: Recover deleted zone file

 

I am running BIND 9.4.3-P1 on slackware  12.2.  The server is only for internal use.  I have accidentally removed one of my zone files, and I have no backup!  Is there a way to restore this zone file from the cache?  I looked at rndc and named options, but don't see anything that will help? 



--
Jay Moore, CIO
The National Beta Club
UT PROSIM

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
0 new messages