Include hint zones in backups
authorJamie Cameron <jcameron@webmin.com>
Tue, 6 Oct 2009 20:21:19 +0000 (13:21 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 6 Oct 2009 20:21:19 +0000 (13:21 -0700)
bind8/CHANGELOG
bind8/backup_config.pl

index 5f1d67c..ad7e28c 100644 (file)
@@ -112,3 +112,5 @@ Added a Module Config option for additional master IP addresses for remote slave
 If nscd is running when BIND is restarted or a zone is applied, it will be signalled to re-read DNS caches too.
 ---- Changes since 1.480 ----
 When all DNS records in a zone are shown, the Type column can be clicked on to sort them.
+---- Changes since 1.490 ----
+Root zone records files are now included in Webmin backups.
index 7a27ef7..f6ad266 100755 (executable)
@@ -11,7 +11,7 @@ local @rv;
 local $conf = &get_config();
 push(@rv, map { $_->{'file'} } @$conf);
 
-# Add all master zone files
+# Add all master and hint zone files
 local @views = &find("view", $conf);
 local ($v, @zones);
 foreach $v (@views) {
@@ -22,7 +22,7 @@ push(@zones, &find("zone", $conf));
 local $z;
 foreach $z (@zones) {
        local $tv = &find_value("type", $z->{'members'});
-       next if ($tv ne "master");
+       next if ($tv ne "master" && $tv ne "hint");
        local $file = &find_value("file", $z->{'members'});
        next if (!$file);
        local @recs = &read_zone_file($file, $z->{'value'});