- output_server($zonefile, $jszonefile, "${zone}", "${jszone}", $cluster);
+ my $name = $cluster->{name};
+
+ if (my $default = $cluster->{default})
+ {
+ output_server($zonefile, $jszonefile, "${default}.${zone}", "${default}.${jszone}", $cluster);
+ }
+ elsif (exists($cluster->{default}))
+ {
+ output_server($zonefile, $jszonefile, "${zone}", "${jszone}", $cluster);
+ }