mkzonefile.pl revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: mkzonefile.pl,v 1.2 2011/09/02 21:15:35 each Exp $
use strict;
print"\$TTL 300 ; 5 minutes
2011080201 ; serial
)
srand;
for (my $i = 0; $i < $nrecords; $i++) {
my $name = "";
for (my $j = 0; $j < 8; $j++) {
my $r = rand 25;
}
print "$name" . "\tIN\tA\t";
my $x = int rand 254;
my $y = int rand 254;
my $z = int rand 254;
print "10.$x.$y.$z\n";
}