Editing
DNS
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Restore deleted domain = In the event a domain (zone file or done definition inside named.conf) is deleted, restoring is easy. We make backups of the mail server daily, included in that are bind config files and domains. These backups may be found on backup1: /data/www/daily and are organized by date. So diggind in, we will find all the files we're looking for here (for example): <pre>ls /data/www/daily/12-12-28/mnt/data1/ns1c-dir/etc/namedb/ bind.keys named.orig copys.sh named.prev createzones.pl named.root k named.root.orig make-localhost named.stats named.conf named.tar named.conf.back-200908140748 ns2c.tar named.conf.bak_pre_remove_allow-query_and_allow-transfer PROTO.localhost.rev named.conf.before.mass.import.2003-10-23 PROTO.localhost-v6.rev named.conf.orig rndc.conf named.conf.ORIGINAL s named.core sendzones.pl named_head</pre> and all the zonefiles are inside the 's' directory as they are on ns1c. So to restore a zonefile you'd simply copy it from the 's' directory on backup1 back to <tt>/etc/namedb/s</tt> on ns1c: scp 69.55.230.11:/data/www/daily/12-12-28/mnt/data1/ns1c-dir/etc/namedb/s/zonefile /etc/namedb/s For good measure, increment the serial and restart bind. Similarly, if you need to restore zones deleted from named.conf you can edit named.conf on backup1 and copy the domain blocks over to the live named.conf on ns1c, or you could copy over named.conf itself back to ns1c. This can be dangerous especially if you're potentially overwriting any changes which occurred after the backup was run.
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information