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
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/
"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
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