Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
892daa60
Commit
892daa60
authored
Dec 15, 2009
by
Leigh B. Stoller
Browse files
Change zone serial number generation to be more standard, as indicated
by this page:
http://www.zytrax.com/books/dns/ch9/serial.html
parent
3a0ec6b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/named_setup.in
View file @
892daa60
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
8
University of Utah and the Flux Group.
# Copyright (c) 2000-200
9
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -324,7 +324,7 @@ sub assemble_zonefile($) {
open
(
MAPHEAD
,
"
<
$mapfilehead
")
||
fatal
("
Couldn't open
$mapfilehead
\n
");
while
(
<
MAPHEAD
>
)
{
if
(
/;\s*Serial\s+/i
)
{
my
$serial
=
`
date +%
s
`;
my
$serial
=
`
date +%
Y%H%M%S
`;
chop
$serial
;
print
MAP
"
\t\t\t
$serial
\t
; Serial Number -- DO NOT EDIT
\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment