- Timestamp:
- Nov 6, 2004, 3:09:09 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dns/rev2revzone.pl
r3124 r3125 1 1 #!/usr/bin/perl 2 3 # Contruct Serial - max of roughly 99 per day;i.e. one 4 # every 3 minutes. 5 # 6 my ($y,$m,$d,$H,$M) = (gmtime(time))[5,4,3,2,1]; 7 my $SOA = sprintf("%04d%02d%02d%02d", 1900+$y, $m, $d, int(100*($H*60+$M)/(24*60))); 2 8 3 9 open STDIN,shift @ARGV … … 17 23 18 24 print <<"ZONE"; 25 ; Autmatically generated zone file 26 ; 19 27 \$ORIGIN $z.in-addr.arpa. 20 28 \$TTL 86400 21 29 @ 1D IN SOA ns1.wLeiden.NET. hostmaster.wLeiden.NET. ( 22 $SOA; serial (d. adams)30 $SOA; serial 23 31 3H ; refresh 24 32 15M ; retry
Note:
See TracChangeset
for help on using the changeset viewer.