Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
908cb2e7
Commit
908cb2e7
authored
Sep 12, 2013
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need an IN NS to ns.emulab.net. for geniracks since Utah is
secondary.
parent
e31a5d1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
named/forward.head.in
named/forward.head.in
+1
-0
named/named_makeforw.in
named/named_makeforw.in
+10
-2
named/named_makerev.in
named/named_makerev.in
+10
-1
No files found.
named/forward.head.in
View file @
908cb2e7
...
...
@@ -11,6 +11,7 @@ $TTL 30
3600000 ; Expire
3600 ) ; Minimum
IN NS ns.@OURDOMAIN@.
%secondaries%
$TTL 30
...
...
named/named_makeforw.in
View file @
908cb2e7
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -38,6 +38,7 @@ sub usage {
# Configure variables
#
my
$OURDOMAIN
=
"
@OURDOMAIN
@
";
my
$PROTOGENI_GENIRACK
=
@PROTOGENI_GENIRACK@
;
my
(
$BOSSTOKEN
)
=
("
@BOSSNODE
@
"
=~
/^([-\w]+).*$/
);
my
(
$USERTOKEN
)
=
("
@USERNODE
@
"
=~
/^([-\w]+).*$/
);
my
(
$FSTOKEN
)
=
("
@FSNODE
@
"
=~
/^([-\w]+).*$/
);
...
...
@@ -66,7 +67,6 @@ my $NAMED_FORWARDERS = "@NAMED_FORWARDERS@";
my
$MXSTR
=
"
\t\t
IN
\t
MX 10
\t
ops
\n
";
# Testbed libraries.
use
lib
"
@prefix
@/lib
";
#use libdb;
...
...
@@ -210,6 +210,14 @@ while (<IF>) {
$external_strings
.=
$foo
if
(
isroutable
(
$CONTROL_ROUTER_IP
));
}
elsif
(
$
2
eq
"
secondaries
")
{
if
(
$PROTOGENI_GENIRACK
)
{
my
$foo
=
"
IN NS ns.emulab.net.
\n
";
$internal_strings
.=
$foo
;
$external_strings
.=
$foo
;
}
}
else
{
die
("
*** $0:
\n
"
.
"
Unknown special tag in named template file!
\n
");
...
...
named/named_makerev.in
View file @
908cb2e7
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -38,6 +38,7 @@ sub usage {
# Configure variables
#
my
$ELABINELAB
=
"
@ELABINELAB
@
";
my
$PROTOGENI_GENIRACK
=
@PROTOGENI_GENIRACK@
;
my
$OURDOMAIN
=
"
@OURDOMAIN
@
";
my
$TESTBED_NETWORK
=
"
@TESTBED_NETWORK
@
";
my
$TESTBED_NETMASK
=
"
@TESTBED_NETMASK
@
";
...
...
@@ -99,6 +100,10 @@ for (my $i = $jb; $i <= $jb + (255 - $jmb); $i++) {
system
("
cp -f reverse.head
$internal_revfile
")
==
0
or
die
("
Unable to copy
$infile
to
$internal_revfile
\n
");
if
(
$PROTOGENI_GENIRACK
)
{
system
("
echo ' IN NS ns.emulab.net.' >>
$internal_revfile
");
}
#
# This is for the case that boss/ops/fs are actually *in* the jail
# network space, as would happen in an elabinelab that is using a
...
...
@@ -139,6 +144,10 @@ for (my $i = $ic; $i <= $ic + (255 - $imc); $i++) {
system
("
cp -f reverse.head
$internal_revfile
")
==
0
or
die
("
Unable to copy
$infile
to
$internal_revfile
\n
");
if
(
$PROTOGENI_GENIRACK
)
{
system
("
echo ' IN NS ns.emulab.net.' >>
$internal_revfile
");
}
open
(
REV
,
"
>>
$internal_revfile
")
or
die
("
Unable to open
$internal_revfile
for appending!
\n
");
print
REV
"
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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